Closed (works as designed)
Project:
Automodal
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Apr 2011 at 17:23 UTC
Updated:
18 Nov 2011 at 16:56 UTC
jQuery UI dialog has a property 'dialogClass' that applies a class to the modal popup that is triggered.
Does automodal support anything like that? Or could it be added to the window config along with width, etc?
Thx
Comments
Comment #1
ha5bro commentedI've added a class (that simply uses automodal + the specified width) to automodal.js,
Into Drupal.behaviors.automodal like so...
Is there another way to accomplish this? A friendly way that lets me update automodal easily would be preferred. I see that settingsAlterCall(settings) allows me to easily change defined settings, but not create a new class. I might be out to lunch though, any guidance/help is appreciated.
Comment #2
imclean commentedYou should be able to use something like this in a custom module:
This adds the class just fine for me, but then the node being opened never displays, it just gets stuck on "Loading...".
Comment #3
imclean commentedOk, the custom dialogClass was overriding the existing dialogClass "modalframe". To work around it, just add it back in.
This is a modalframe API issue, but it could be by design.
See: #1300914: Using customDialogOptions dialogClass overrides modalframe class
Comment #4
ha5bro commented'customDialogOptions' => array('dialogClass' => 'modalframe modalframe231')Genius! Thanks imclean.