Active
Project:
Modal forms (with ctools)
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 May 2013 at 01:02 UTC
Updated:
20 Jun 2014 at 13:24 UTC
Jump to comment: Most recent
Comments
Comment #1
JieXiannn commentedI've had this problem too, and I've managed a simple workaround by modifying the .js files in sites\all\modules\modal_forms\js so that the login, pass and register form, uses different classes, ie one each of the available
ctools-modal-modal-popup-large
ctools-modal-modal-popup-medium
ctools-modal-modal-popup-small
Luckily for me I only use 3 forms and I only needed the unique ids to style the dimensions of each popup form, hence this workaround works fine.
Comment #2
Marko B commentedYes you can hack values there. Or some config could be added to admin page and then variables passed the same way there is cTools variable passed in
modal_forms_popup.js file
html += ' <span class="popups-close close">' + Drupal.CTools.Modal.currentSettings.closeText + '</span>';