Changeset 2d4173 in indico
- Timestamp:
- 12/01/11 13:38:15 (18 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 4c7d4152dff271ba5df5a8606605969cab454080
- Children:
- 8f8e4d
- Parents:
- d8c61c
- git-author:
- Adrian Moennich <jerome.ernst.monnich@…> (07/11/11 17:34:30)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (12/01/11 13:38:15)
- File:
-
- 1 edited
-
indico/htdocs/js/indico/Core/Dialogs/Popup.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/htdocs/js/indico/Core/Dialogs/Popup.js
ra119d0 r2d4173 97 97 modal: true, 98 98 resizable: false, 99 closeOnEscape: false,99 closeOnEscape: true, 100 100 title: this.title, 101 101 minWidth: '250px', … … 116 116 // Close button clicked 117 117 if(e.originalEvent && $(e.originalEvent.currentTarget).hasClass('ui-dialog-titlebar-close')) { 118 if(isFunction(this.closeHandler) && !this.closeHandler()) { 119 return false; 120 } 121 } 122 // Escape key 123 else if(e.keyCode && e.keyCode === $.ui.keyCode.ESCAPE) { 124 e.stopPropagation(); // otherwise this triggers twice for some reason 125 if(this.closeHandler === null || !this.showCloseButton) { 126 // Ignore escape if we don't have a close button 127 return false; 128 } 118 129 if(isFunction(this.closeHandler) && !this.closeHandler()) { 119 130 return false;
Note: See TracChangeset
for help on using the changeset viewer.
