Index: trunk/extensions/Collection/js/bookcreator.js |
— | — | @@ -105,7 +105,10 @@ |
106 | 106 | }, 300); |
107 | 107 | } |
108 | 108 | |
109 | | -function cancel_asyncs() { |
| 109 | +function cancel() { |
| 110 | + if (current_link && title) { |
| 111 | + current_link.attr('title', title); |
| 112 | + } |
110 | 113 | if (show_soon_timeout) { |
111 | 114 | clearTimeout(show_soon_timeout); |
112 | 115 | show_soon_timeout = null; |
— | — | @@ -117,15 +120,12 @@ |
118 | 121 | } |
119 | 122 | |
120 | 123 | function hide() { |
121 | | - cancel_asyncs(); |
| 124 | + cancel(); |
122 | 125 | if (!visible) { |
123 | 126 | return; |
124 | 127 | } |
125 | 128 | visible = false; |
126 | 129 | popup_div.hide(); |
127 | | - if (current_link && title) { |
128 | | - current_link.attr('title', title); |
129 | | - } |
130 | 130 | } |
131 | 131 | |
132 | 132 | function is_inside(x, y, left, top, width, height) { |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | if ($this.parents('.nopopups').length) { |
175 | 175 | return; |
176 | 176 | } |
177 | | - $this.hover(function() { show($this); }, cancel_asyncs); |
| 177 | + $this.hover(function() { show($this); }, cancel); |
178 | 178 | }); |
179 | 179 | }); |
180 | 180 | |