comparison js/dnd-library.js @ 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
comparison
equal deleted inserted replaced
41:96b0c9ac3b28 42:eb7c103b54cb
128 } 128 }
129 } 129 }
130 $.data($(editor), 'dnd_preload', cached); 130 $.data($(editor), 'dnd_preload', cached);
131 131
132 $('.pager a', $this).click(function() { 132 $('.pager a', $this).click(function() {
133 // At page switching, close all opened BeautyTips.
134 $('.editor-item.bt-active').btOff();
133 $.getJSON(this.href, function(data) { 135 $.getJSON(this.href, function(data) {
134 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor)); 136 Drupal.behaviors.dndLibrary.renderLibrary.call($this.get(0), data, $(editor));
135 }); 137 });
136 return false; 138 return false;
137 }); 139 });