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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9958, comment 7

    v1 v2  
    55  var editor = event.editor;
    66  editor.on('dialogShow', function(dialogShowEvent) {
     7
    78    // When a dialog shows, get its base element and search
    89    // for all links with void(0) in the href but without an onclick,
    910    // then replace the href with "###". This prevents IE from triggering
    1011    // onBeforeUnload, and "###" (instead of "#") stops page jumping to top.
     12
    1113    $(dialogShowEvent.data._.element.$)
    1214    .find('a[href*="void(0)"]:not([onclick])').each(function(i, e) {
    1315      e.href = "###";
    1416    });
     17
    1518  });
    1619});
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy