# HG changeset patch # User Franck Deroche # Date 1255599834 -7200 # Node ID eb7c103b54cb00f1f2767af5526bc601d919cd61 # Parent 96b0c9ac3b281c3342ddc4550ccf50b21fccfdaa Close open tips before page switching diff -r 96b0c9ac3b28 -r eb7c103b54cb js/dnd-library.js --- 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)); });