Changes between Initial Version and Version 1 of Ticket #9958, comment 7
- Timestamp:
- Feb 13, 2013, 5:31:52 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9958, comment 7
initial v1 5 5 var editor = event.editor; 6 6 editor.on('dialogShow', function(dialogShowEvent) { 7 // When a dialog shows, get its base element and search 8 // for all links with void(0) in the href but without an onclick, 9 // then replace the href with "###". This prevents IE from triggering 10 // onBeforeUnload, and "###" (instead of "#") stops page jumping to top. 7 11 $(dialogShowEvent.data._.element.$) 8 12 .find('a[href*="void(0)"]:not([onclick])').each(function(i, e) {