1 var showNotice, adminMenu, columns, validateForm; |
1 var showNotice, adminMenu, columns, validateForm, screenMeta; |
2 (function($){ |
2 (function($){ |
3 // sidebar admin menu |
3 // Removed in 3.3. |
|
4 // (perhaps) needed for back-compat |
4 adminMenu = { |
5 adminMenu = { |
5 init : function() { |
6 init : function() {}, |
6 var menu = $('#adminmenu'); |
7 fold : function() {}, |
7 |
8 restoreMenuState : function() {}, |
8 $('.wp-menu-toggle', menu).each( function() { |
9 toggle : function() {}, |
9 var t = $(this), sub = t.siblings('.wp-submenu'); |
10 favorites : function() {} |
10 if ( sub.length ) |
|
11 t.click(function(){ adminMenu.toggle( sub ); }); |
|
12 else |
|
13 t.hide(); |
|
14 }); |
|
15 |
|
16 this.favorites(); |
|
17 |
|
18 $('.separator', menu).click(function(){ |
|
19 if ( $('body').hasClass('folded') ) { |
|
20 adminMenu.fold(1); |
|
21 deleteUserSetting( 'mfold' ); |
|
22 } else { |
|
23 adminMenu.fold(); |
|
24 setUserSetting( 'mfold', 'f' ); |
|
25 } |
|
26 return false; |
|
27 }); |
|
28 |
|
29 if ( $('body').hasClass('folded') ) |
|
30 this.fold(); |
|
31 |
|
32 this.restoreMenuState(); |
|
33 }, |
|
34 |
|
35 restoreMenuState : function() { |
|
36 $('li.wp-has-submenu', '#adminmenu').each(function(i, e) { |
|
37 var v = getUserSetting( 'm'+i ); |
|
38 if ( $(e).hasClass('wp-has-current-submenu') ) |
|
39 return true; // leave the current parent open |
|
40 |
|
41 if ( 'o' == v ) |
|
42 $(e).addClass('wp-menu-open'); |
|
43 else if ( 'c' == v ) |
|
44 $(e).removeClass('wp-menu-open'); |
|
45 }); |
|
46 }, |
|
47 |
|
48 toggle : function(el) { |
|
49 var id = el.slideToggle(150, function() { |
|
50 el.css('display',''); |
|
51 }).parent().toggleClass( 'wp-menu-open' ).attr('id'); |
|
52 |
|
53 if ( id ) { |
|
54 $('li.wp-has-submenu', '#adminmenu').each(function(i, e) { |
|
55 if ( id == e.id ) { |
|
56 var v = $(e).hasClass('wp-menu-open') ? 'o' : 'c'; |
|
57 setUserSetting( 'm'+i, v ); |
|
58 } |
|
59 }); |
|
60 } |
|
61 |
|
62 return false; |
|
63 }, |
|
64 |
|
65 fold : function(off) { |
|
66 if (off) { |
|
67 $('body').removeClass('folded'); |
|
68 $('#adminmenu li.wp-has-submenu').unbind(); |
|
69 } else { |
|
70 $('body').addClass('folded'); |
|
71 $('#adminmenu li.wp-has-submenu').hoverIntent({ |
|
72 over: function(e){ |
|
73 var m, b, h, o, f; |
|
74 m = $(this).find('.wp-submenu'); |
|
75 b = $(this).offset().top + m.height() + 1; // Bottom offset of the menu |
|
76 h = $('#wpwrap').height(); // Height of the entire page |
|
77 o = 60 + b - h; |
|
78 f = $(window).height() + $(window).scrollTop() - 15; // The fold |
|
79 if ( f < (b - o) ) { |
|
80 o = b - f; |
|
81 } |
|
82 if ( o > 1 ) { |
|
83 m.css({'marginTop':'-'+o+'px'}); |
|
84 } else if ( m.css('marginTop') ) { |
|
85 m.css({'marginTop':''}); |
|
86 } |
|
87 m.addClass('sub-open'); |
|
88 }, |
|
89 out: function(){ $(this).find('.wp-submenu').removeClass('sub-open').css({'marginTop':''}); }, |
|
90 timeout: 220, |
|
91 sensitivity: 8, |
|
92 interval: 100 |
|
93 }); |
|
94 |
|
95 } |
|
96 }, |
|
97 |
|
98 favorites : function() { |
|
99 $('#favorite-inside').width( $('#favorite-actions').width() - 4 ); |
|
100 $('#favorite-toggle, #favorite-inside').bind('mouseenter', function() { |
|
101 $('#favorite-inside').removeClass('slideUp').addClass('slideDown'); |
|
102 setTimeout(function() { |
|
103 if ( $('#favorite-inside').hasClass('slideDown') ) { |
|
104 $('#favorite-inside').slideDown(100); |
|
105 $('#favorite-first').addClass('slide-down'); |
|
106 } |
|
107 }, 200); |
|
108 }).bind('mouseleave', function() { |
|
109 $('#favorite-inside').removeClass('slideDown').addClass('slideUp'); |
|
110 setTimeout(function() { |
|
111 if ( $('#favorite-inside').hasClass('slideUp') ) { |
|
112 $('#favorite-inside').slideUp(100, function() { |
|
113 $('#favorite-first').removeClass('slide-down'); |
|
114 }); |
|
115 } |
|
116 }, 300); |
|
117 }); |
|
118 } |
|
119 }; |
11 }; |
120 |
|
121 $(document).ready(function(){ adminMenu.init(); }); |
|
122 |
12 |
123 // show/hide/save table columns |
13 // show/hide/save table columns |
124 columns = { |
14 columns = { |
125 init : function() { |
15 init : function() { |
|
16 var that = this; |
126 $('.hide-column-tog', '#adv-settings').click( function() { |
17 $('.hide-column-tog', '#adv-settings').click( function() { |
127 var column = $(this).val(); |
18 var $t = $(this), column = $t.val(); |
128 if ( $(this).attr('checked') ) |
19 if ( $t.prop('checked') ) |
129 $('.column-' + column).show(); |
20 that.checked(column); |
130 else |
21 else |
131 $('.column-' + column).hide(); |
22 that.unchecked(column); |
132 |
23 |
133 columns.save_manage_columns_state(); |
24 columns.saveManageColumnsState(); |
134 }); |
25 }); |
135 }, |
26 }, |
136 |
27 |
137 save_manage_columns_state : function() { |
28 saveManageColumnsState : function() { |
138 var hidden = $('.manage-column').filter(':hidden').map(function() { return this.id; }).get().join(','); |
29 var hidden = this.hidden(); |
139 $.post(ajaxurl, { |
30 $.post(ajaxurl, { |
140 action: 'hidden-columns', |
31 action: 'hidden-columns', |
141 hidden: hidden, |
32 hidden: hidden, |
142 screenoptionnonce: $('#screenoptionnonce').val(), |
33 screenoptionnonce: $('#screenoptionnonce').val(), |
143 page: pagenow |
34 page: pagenow |
144 }); |
35 }); |
|
36 }, |
|
37 |
|
38 checked : function(column) { |
|
39 $('.column-' + column).show(); |
|
40 this.colSpanChange(+1); |
|
41 }, |
|
42 |
|
43 unchecked : function(column) { |
|
44 $('.column-' + column).hide(); |
|
45 this.colSpanChange(-1); |
|
46 }, |
|
47 |
|
48 hidden : function() { |
|
49 return $('.manage-column').filter(':hidden').map(function() { return this.id; }).get().join(','); |
|
50 }, |
|
51 |
|
52 useCheckboxesForHidden : function() { |
|
53 this.hidden = function(){ |
|
54 return $('.hide-column-tog').not(':checked').map(function() { |
|
55 var id = this.id; |
|
56 return id.substring( id, id.length - 5 ); |
|
57 }).get().join(','); |
|
58 }; |
|
59 }, |
|
60 |
|
61 colSpanChange : function(diff) { |
|
62 var $t = $('table').find('.colspanchange'), n; |
|
63 if ( !$t.length ) |
|
64 return; |
|
65 n = parseInt( $t.attr('colspan'), 10 ) + diff; |
|
66 $t.attr('colspan', n.toString()); |
145 } |
67 } |
146 } |
68 } |
147 |
69 |
148 $(document).ready(function(){columns.init();}); |
70 $(document).ready(function(){columns.init();}); |
149 |
71 |
150 validateForm = function( form ) { |
72 validateForm = function( form ) { |
151 return !$( form ).find('.form-required').filter( function() { return $('input:visible', this).val() == ''; } ).addClass( 'form-invalid' ).find('input:visible').change( function() { $(this).closest('.form-invalid').removeClass( 'form-invalid' ); } ).size(); |
73 return !$( form ).find('.form-required').filter( function() { return $('input:visible', this).val() == ''; } ).addClass( 'form-invalid' ).find('input:visible').change( function() { $(this).closest('.form-invalid').removeClass( 'form-invalid' ); } ).size(); |
152 } |
74 } |
153 |
|
154 })(jQuery); |
|
155 |
75 |
156 // stub for doing better warnings |
76 // stub for doing better warnings |
157 showNotice = { |
77 showNotice = { |
158 warn : function() { |
78 warn : function() { |
159 var msg = commonL10n.warnDelete || ''; |
79 var msg = commonL10n.warnDelete || ''; |
167 note : function(text) { |
87 note : function(text) { |
168 alert(text); |
88 alert(text); |
169 } |
89 } |
170 }; |
90 }; |
171 |
91 |
172 jQuery(document).ready( function($) { |
92 screenMeta = { |
173 var lastClicked = false, checks, first, last, checked; |
93 element: null, // #screen-meta |
174 |
94 toggles: null, // .screen-meta-toggle |
175 // Move .updated and .error alert boxes |
95 page: null, // #wpcontent |
|
96 |
|
97 init: function() { |
|
98 this.element = $('#screen-meta'); |
|
99 this.toggles = $('.screen-meta-toggle a'); |
|
100 this.page = $('#wpcontent'); |
|
101 |
|
102 this.toggles.click( this.toggleEvent ); |
|
103 }, |
|
104 |
|
105 toggleEvent: function( e ) { |
|
106 var panel = $( this.href.replace(/.+#/, '#') ); |
|
107 e.preventDefault(); |
|
108 |
|
109 if ( !panel.length ) |
|
110 return; |
|
111 |
|
112 if ( panel.is(':visible') ) |
|
113 screenMeta.close( panel, $(this) ); |
|
114 else |
|
115 screenMeta.open( panel, $(this) ); |
|
116 }, |
|
117 |
|
118 open: function( panel, link ) { |
|
119 |
|
120 $('.screen-meta-toggle').not( link.parent() ).css('visibility', 'hidden'); |
|
121 |
|
122 panel.parent().show(); |
|
123 panel.slideDown( 'fast', function() { |
|
124 link.addClass('screen-meta-active'); |
|
125 }); |
|
126 }, |
|
127 |
|
128 close: function( panel, link ) { |
|
129 panel.slideUp( 'fast', function() { |
|
130 link.removeClass('screen-meta-active'); |
|
131 $('.screen-meta-toggle').css('visibility', ''); |
|
132 panel.parent().hide(); |
|
133 }); |
|
134 } |
|
135 }; |
|
136 |
|
137 /** |
|
138 * Help tabs. |
|
139 */ |
|
140 $('.contextual-help-tabs').delegate('a', 'click focus', function(e) { |
|
141 var link = $(this), |
|
142 panel; |
|
143 |
|
144 e.preventDefault(); |
|
145 |
|
146 // Don't do anything if the click is for the tab already showing. |
|
147 if ( link.is('.active a') ) |
|
148 return false; |
|
149 |
|
150 // Links |
|
151 $('.contextual-help-tabs .active').removeClass('active'); |
|
152 link.parent('li').addClass('active'); |
|
153 |
|
154 panel = $( link.attr('href') ); |
|
155 |
|
156 // Panels |
|
157 $('.help-tab-content').not( panel ).removeClass('active').hide(); |
|
158 panel.addClass('active').show(); |
|
159 }); |
|
160 |
|
161 $(document).ready( function() { |
|
162 var lastClicked = false, checks, first, last, checked, menu = $('#adminmenu'), |
|
163 pageInput = $('input.current-page'), currentPage = pageInput.val(), refresh; |
|
164 |
|
165 // admin menu |
|
166 refresh = function(i, el){ // force the browser to refresh the tabbing index |
|
167 var node = $(el), tab = node.attr('tabindex'); |
|
168 if ( tab ) |
|
169 node.attr('tabindex', '0').attr('tabindex', tab); |
|
170 }; |
|
171 |
|
172 $('#collapse-menu', menu).click(function(){ |
|
173 var body = $(document.body); |
|
174 |
|
175 // reset any compensation for submenus near the bottom of the screen |
|
176 $('#adminmenu div.wp-submenu').css('margin-top', ''); |
|
177 |
|
178 if ( body.hasClass('folded') ) { |
|
179 body.removeClass('folded'); |
|
180 setUserSetting('mfold', 'o'); |
|
181 } else { |
|
182 body.addClass('folded'); |
|
183 setUserSetting('mfold', 'f'); |
|
184 } |
|
185 return false; |
|
186 }); |
|
187 |
|
188 $('li.wp-has-submenu', menu).hoverIntent({ |
|
189 over: function(e){ |
|
190 var b, h, o, f, m = $(this).find('.wp-submenu'), menutop, wintop, maxtop; |
|
191 |
|
192 if ( m.is(':visible') ) |
|
193 return; |
|
194 |
|
195 menutop = $(this).offset().top; |
|
196 wintop = $(window).scrollTop(); |
|
197 maxtop = menutop - wintop - 30; // max = make the top of the sub almost touch admin bar |
|
198 |
|
199 b = menutop + m.height() + 1; // Bottom offset of the menu |
|
200 h = $('#wpwrap').height(); // Height of the entire page |
|
201 o = 60 + b - h; |
|
202 f = $(window).height() + wintop - 15; // The fold |
|
203 |
|
204 if ( f < (b - o) ) |
|
205 o = b - f; |
|
206 |
|
207 if ( o > maxtop ) |
|
208 o = maxtop; |
|
209 |
|
210 if ( o > 1 ) |
|
211 m.css('margin-top', '-'+o+'px'); |
|
212 else |
|
213 m.css('margin-top', ''); |
|
214 |
|
215 menu.find('.wp-submenu').removeClass('sub-open'); |
|
216 m.addClass('sub-open'); |
|
217 }, |
|
218 out: function(){ |
|
219 $(this).find('.wp-submenu').removeClass('sub-open').css('margin-top', ''); |
|
220 }, |
|
221 timeout: 200, |
|
222 sensitivity: 7, |
|
223 interval: 90 |
|
224 }); |
|
225 |
|
226 // Tab to select, Enter to open sub, Esc to close sub and focus the top menu |
|
227 $('li.wp-has-submenu > a.wp-not-current-submenu', menu).bind('keydown.adminmenu', function(e){ |
|
228 if ( e.which != 13 ) |
|
229 return; |
|
230 |
|
231 var target = $(e.target); |
|
232 |
|
233 e.stopPropagation(); |
|
234 e.preventDefault(); |
|
235 |
|
236 menu.find('.wp-submenu').removeClass('sub-open'); |
|
237 target.siblings('.wp-submenu').toggleClass('sub-open').find('a[role="menuitem"]').each(refresh); |
|
238 }).each(refresh); |
|
239 |
|
240 $('a[role="menuitem"]', menu).bind('keydown.adminmenu', function(e){ |
|
241 if ( e.which != 27 ) |
|
242 return; |
|
243 |
|
244 var target = $(e.target); |
|
245 |
|
246 e.stopPropagation(); |
|
247 e.preventDefault(); |
|
248 |
|
249 target.add( target.siblings() ).closest('.sub-open').removeClass('sub-open').siblings('a.wp-not-current-submenu').focus(); |
|
250 }); |
|
251 |
|
252 // Move .updated and .error alert boxes. Don't move boxes designed to be inline. |
176 $('div.wrap h2:first').nextAll('div.updated, div.error').addClass('below-h2'); |
253 $('div.wrap h2:first').nextAll('div.updated, div.error').addClass('below-h2'); |
177 $('div.updated, div.error').not('.below-h2').insertAfter( $('div.wrap h2:first') ); |
254 $('div.updated, div.error').not('.below-h2, .inline').insertAfter( $('div.wrap h2:first') ); |
178 |
255 |
179 // screen settings tab |
256 // Init screen meta |
180 $('#show-settings-link').click(function () { |
257 screenMeta.init(); |
181 if ( ! $('#screen-options-wrap').hasClass('screen-options-open') ) |
|
182 $('#contextual-help-link-wrap').css('visibility', 'hidden'); |
|
183 |
|
184 $('#screen-options-wrap').slideToggle('fast', function(){ |
|
185 if ( $(this).hasClass('screen-options-open') ) { |
|
186 $('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right.gif")'}); |
|
187 $('#contextual-help-link-wrap').css('visibility', ''); |
|
188 $(this).removeClass('screen-options-open'); |
|
189 } else { |
|
190 $('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'}); |
|
191 $(this).addClass('screen-options-open'); |
|
192 } |
|
193 }); |
|
194 return false; |
|
195 }); |
|
196 |
|
197 // help tab |
|
198 $('#contextual-help-link').click(function () { |
|
199 if ( ! $('#contextual-help-wrap').hasClass('contextual-help-open') ) |
|
200 $('#screen-options-link-wrap').css('visibility', 'hidden'); |
|
201 |
|
202 $('#contextual-help-wrap').slideToggle('fast', function() { |
|
203 if ( $(this).hasClass('contextual-help-open') ) { |
|
204 $('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right.gif")'}); |
|
205 $('#screen-options-link-wrap').css('visibility', ''); |
|
206 $(this).removeClass('contextual-help-open'); |
|
207 } else { |
|
208 $('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'}); |
|
209 $(this).addClass('contextual-help-open'); |
|
210 } |
|
211 }); |
|
212 return false; |
|
213 }); |
|
214 |
258 |
215 // check all checkboxes |
259 // check all checkboxes |
216 $('tbody').children().children('.check-column').find(':checkbox').click( function(e) { |
260 $('tbody').children().children('.check-column').find(':checkbox').click( function(e) { |
217 if ( 'undefined' == e.shiftKey ) { return true; } |
261 if ( 'undefined' == e.shiftKey ) { return true; } |
218 if ( e.shiftKey ) { |
262 if ( e.shiftKey ) { |
219 if ( !lastClicked ) { return true; } |
263 if ( !lastClicked ) { return true; } |
220 checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ); |
264 checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' ); |
221 first = checks.index( lastClicked ); |
265 first = checks.index( lastClicked ); |
222 last = checks.index( this ); |
266 last = checks.index( this ); |
223 checked = $(this).attr('checked'); |
267 checked = $(this).prop('checked'); |
224 if ( 0 < first && 0 < last && first != last ) { |
268 if ( 0 < first && 0 < last && first != last ) { |
225 checks.slice( first, last ).attr( 'checked', function(){ |
269 checks.slice( first, last ).prop( 'checked', function(){ |
226 if ( $(this).closest('tr').is(':visible') ) |
270 if ( $(this).closest('tr').is(':visible') ) |
227 return checked ? 'checked' : ''; |
271 return checked; |
228 |
272 |
229 return ''; |
273 return false; |
230 }); |
274 }); |
231 } |
275 } |
232 } |
276 } |
233 lastClicked = this; |
277 lastClicked = this; |
234 return true; |
278 return true; |
235 }); |
279 }); |
236 |
280 |
237 $('thead, tfoot').find(':checkbox').click( function(e) { |
281 $('thead, tfoot').find('.check-column :checkbox').click( function(e) { |
238 var c = $(this).attr('checked'), |
282 var c = $(this).prop('checked'), |
239 kbtoggle = 'undefined' == typeof toggleWithKeyboard ? false : toggleWithKeyboard, |
283 kbtoggle = 'undefined' == typeof toggleWithKeyboard ? false : toggleWithKeyboard, |
240 toggle = e.shiftKey || kbtoggle; |
284 toggle = e.shiftKey || kbtoggle; |
241 |
285 |
242 $(this).closest( 'table' ).children( 'tbody' ).filter(':visible') |
286 $(this).closest( 'table' ).children( 'tbody' ).filter(':visible') |
243 .children().children('.check-column').find(':checkbox') |
287 .children().children('.check-column').find(':checkbox') |
244 .attr('checked', function() { |
288 .prop('checked', function() { |
245 if ( $(this).closest('tr').is(':hidden') ) |
289 if ( $(this).closest('tr').is(':hidden') ) |
246 return ''; |
290 return false; |
247 if ( toggle ) |
291 if ( toggle ) |
248 return $(this).attr( 'checked' ) ? '' : 'checked'; |
292 return $(this).prop( 'checked' ); |
249 else if (c) |
293 else if (c) |
250 return 'checked'; |
294 return true; |
251 return ''; |
295 return false; |
252 }); |
296 }); |
253 |
297 |
254 $(this).closest('table').children('thead, tfoot').filter(':visible') |
298 $(this).closest('table').children('thead, tfoot').filter(':visible') |
255 .children().children('.check-column').find(':checkbox') |
299 .children().children('.check-column').find(':checkbox') |
256 .attr('checked', function() { |
300 .prop('checked', function() { |
257 if ( toggle ) |
301 if ( toggle ) |
258 return ''; |
302 return false; |
259 else if (c) |
303 else if (c) |
260 return 'checked'; |
304 return true; |
261 return ''; |
305 return false; |
262 }); |
306 }); |
263 }); |
307 }); |
264 |
308 |
265 $('#default-password-nag-no').click( function() { |
309 $('#default-password-nag-no').click( function() { |
266 setUserSetting('default_password_nag', 'hide'); |
310 setUserSetting('default_password_nag', 'hide'); |
267 $('div.default-password-nag').hide(); |
311 $('div.default-password-nag').hide(); |
268 return false; |
312 return false; |
269 }); |
313 }); |
|
314 |
|
315 // tab in textareas |
|
316 $('#newcontent').bind('keydown.wpevent_InsertTab', function(e) { |
|
317 if ( e.keyCode != 9 ) |
|
318 return true; |
|
319 |
|
320 var el = e.target, selStart = el.selectionStart, selEnd = el.selectionEnd, val = el.value, scroll, sel; |
|
321 |
|
322 try { |
|
323 this.lastKey = 9; // not a standard DOM property, lastKey is to help stop Opera tab event. See blur handler below. |
|
324 } catch(err) {} |
|
325 |
|
326 if ( document.selection ) { |
|
327 el.focus(); |
|
328 sel = document.selection.createRange(); |
|
329 sel.text = '\t'; |
|
330 } else if ( selStart >= 0 ) { |
|
331 scroll = this.scrollTop; |
|
332 el.value = val.substring(0, selStart).concat('\t', val.substring(selEnd) ); |
|
333 el.selectionStart = el.selectionEnd = selStart + 1; |
|
334 this.scrollTop = scroll; |
|
335 } |
|
336 |
|
337 if ( e.stopPropagation ) |
|
338 e.stopPropagation(); |
|
339 if ( e.preventDefault ) |
|
340 e.preventDefault(); |
|
341 }); |
|
342 |
|
343 $('#newcontent').bind('blur.wpevent_InsertTab', function(e) { |
|
344 if ( this.lastKey && 9 == this.lastKey ) |
|
345 this.focus(); |
|
346 }); |
|
347 |
|
348 if ( pageInput.length ) { |
|
349 pageInput.closest('form').submit( function(e){ |
|
350 |
|
351 // Reset paging var for new filters/searches but not for bulk actions. See #17685. |
|
352 if ( $('select[name="action"]').val() == -1 && $('select[name="action2"]').val() == -1 && pageInput.val() == currentPage ) |
|
353 pageInput.val('1'); |
|
354 }); |
|
355 } |
|
356 |
270 }); |
357 }); |
271 |
358 |
272 jQuery(document).ready( function($){ |
359 // internal use |
273 var turboNag = $('span.turbo-nag', '#user_info'); |
360 $(document).bind( 'wp_CloseOnEscape', function( e, data ) { |
274 |
361 if ( typeof(data.cb) != 'function' ) |
275 if ( !turboNag.length || ('undefined' != typeof(google) && google.gears) ) |
|
276 return; |
362 return; |
277 |
363 |
278 if ( 'undefined' != typeof GearsFactory ) { |
364 if ( typeof(data.condition) != 'function' || data.condition() ) |
279 return; |
365 data.cb(); |
280 } else { |
366 |
281 try { |
367 return true; |
282 if ( ( 'undefined' != typeof window.ActiveXObject && ActiveXObject('Gears.Factory') ) || |
|
283 ( 'undefined' != typeof navigator.mimeTypes && navigator.mimeTypes['application/x-googlegears'] ) ) { |
|
284 return; |
|
285 } |
|
286 } catch(e){} |
|
287 } |
|
288 |
|
289 turboNag.show(); |
|
290 }); |
368 }); |
|
369 |
|
370 })(jQuery); |