Changeset 4077
- Timestamp:
- 12/08/07 14:52:15 (1 year ago)
- Location:
- trunk/ui/current
- Files:
-
- 2 modified
-
tests/uiTest.dialog.js (modified) (1 diff)
-
ui.dialog.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/current/tests/uiTest.dialog.js
r4076 r4077 65 65 }, 66 66 "callbacks": { 67 "open" : "$('#foo').dialog({\n open: function() {\n alert('opened');\n }\n});", 68 "close" : "$('#foo').dialog({\n close: function() {\n alert('closed');\n }\n});" 67 69 }, 68 70 "methods": { -
trunk/ui/current/ui.dialog.js
r4076 r4077 154 154 uiDialog.css({top: top, left: left}); 155 155 uiDialog.show(); 156 157 // CALLBACK: open 158 var openEV = null; 159 var openUI = { 160 options: options 161 }; 162 $(this.element).triggerHandler("dialogopen", [openEV, openUI], options.open); 156 163 }; 157 164 158 165 this.close = function() { 159 166 uiDialog.hide(); 167 168 // CALLBACK: close 169 var closeEV = null; 170 var closeUI = { 171 options: options 172 }; 173 $(this.element).triggerHandler("dialogclose", [closeEV, closeUI], options.close); 160 174 }; 161 175
