Changeset 437
- Timestamp:
- 07/09/08 19:45:49 (21 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.dialog.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.dialog.js
r434 r437 268 268 this.moveToTop(true); 269 269 270 // CALLBACK: open 271 var openEV = this.fakeEvent('dialogopen'); 272 var openUI = { 273 options: this.options 274 }; 275 this.uiDialogTitlebarClose.focus(); 276 this.element.triggerHandler("dialogopen", [openEV, openUI], this.options.open); 277 270 this.trigger('open', null, { options: this.options }); 278 271 this.isOpen = true; 279 272 }, … … 285 278 if ((this.options.modal && !force) 286 279 || (!this.options.stack && !this.options.modal)) { 287 return this.element.triggerHandler("dialogfocus", 288 [this.fakeEvent('dialogfocus'), { options: this.options }], 289 this.options.focus); 280 return this.trigger('focus', null, { options: this.options }); 290 281 } 291 282 … … 297 288 this.uiDialog.css('z-index', ++maxZ); 298 289 299 this.element.triggerHandler("dialogfocus", 300 [this.fakeEvent('dialogfocus'), { options: this.options }], 301 this.options.focus); 290 this.trigger('focus', null, { options: this.options }); 302 291 }, 303 292 … … 305 294 (this.overlay && this.overlay.destroy()); 306 295 this.uiDialog.hide(this.options.hide); 307 308 // CALLBACK: close 309 var closeEV = this.fakeEvent('dialogclose'); 310 var closeUI = { 311 options: this.options 312 }; 313 this.element.triggerHandler("dialogclose", [closeEV, closeUI], this.options.close); 296 297 this.trigger('close', null, { options: this.options }); 314 298 $.ui.dialog.overlay.resize(); 315 299