Changes between Initial Version and Version 1 of Ticket #9958, comment 7


Ignore:
Timestamp:
Feb 13, 2013, 5:31:52 PM (12 years ago)
Author:
Alistair
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9958, comment 7

    initial v1  
    55  var editor = event.editor;
    66  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.
    711    $(dialogShowEvent.data._.element.$)
    812    .find('a[href*="void(0)"]:not([onclick])').each(function(i, e) {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy