Bug Tracker

Changeset 4696

Show
Ignore:
Timestamp:
02/08/08 22:03:04 (1 year ago)
Author:
scott.gonzalez
Message:

Fix #2297. Split out overlay CSS options from modal option.

Location:
trunk/ui
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/tests/uiTest.dialog.js

    r4661 r4696  
    4242                "modal" : { 
    4343                    "false" : "$('#foo').dialog({\n\t modal: false \n});", 
    44                     "true" : "$('#foo').dialog({\n\t modal: true \n});", 
    45                     "Css-BgWhiteOpacity0.5" : "$('#foo').dialog({\n\t modal: { backgroundColor: 'white', opacity: 0.5 } \n})" 
     44                    "true" : "$('#foo').dialog({\n\t modal: true \n});" 
     45                }, 
     46                "overlay" : { 
     47                    "BgWhiteOpacity0.5" : "$('#foo').dialog({\n\t modal: true, \n\t overlay: { backgroundColor: 'white', opacity: 0.5 } \n})" 
    4648                }, 
    4749                "position" : { 
  • trunk/ui/ui.dialog.js

    r4695 r4696  
    118118     
    119119        this.open = function() { 
    120             options.modal && overlay.show(self, options.modal); 
     120            options.modal && overlay.show(self, options.overlay); 
    121121            uiDialog.appendTo('body'); 
    122122            var wnd = $(window), doc = $(document), top = doc.scrollTop(), left = doc.scrollLeft(); 
     
    201201            minWidth: 150, 
    202202            modal: false, 
     203            overlay: {}, 
    203204            position: 'center', 
    204205            resizable: true,