changeset 42:eb7c103b54cb

Close open tips before page switching
author Franck Deroche <franck@defr.org>
date Thu, 15 Oct 2009 11:43:54 +0200
parents 96b0c9ac3b28
children 196348c8298f
files js/dnd-library.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/js/dnd-library.js	Thu Oct 15 11:42:48 2009 +0200
+++ b/js/dnd-library.js	Thu Oct 15 11:43:54 2009 +0200
@@ -130,6 +130,8 @@
   $.data($(editor), 'dnd_preload', cached);
 
   $('.pager a', $this).click(function() {
+    // At page switching, close all opened BeautyTips.
+    $('.editor-item.bt-active').btOff();
     $.getJSON(this.href, function(data) {
       Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor));
     });