|
165 | 165 | /* Apply for normal checkbox */
|
166 | 166 | $('.a3rev_panel_container .hide_options_if_checked').each(function(){
|
167 | 167 |
|
168 |
| - $(this).find('input:eq(0)').change(function() { |
| 168 | + $(this).find('input').eq(0).change(function() { |
169 | 169 |
|
170 | 170 | if ($(this).is(':checked')) {
|
171 | 171 | $(this).closest('fieldset, tr').nextUntil( '.hide_options_if_checked, .show_options_if_checked', '.hidden_option').hide();
|
|
178 | 178 | });
|
179 | 179 | $('.a3rev_panel_container .show_options_if_checked').each(function(){
|
180 | 180 |
|
181 |
| - $(this).find('input:eq(0)').change(function() { |
| 181 | + $(this).find('input').eq(0).change(function() { |
182 | 182 |
|
183 | 183 | if ($(this).is(':checked')) {
|
184 | 184 | $(this).closest('fieldset, tr').nextUntil( '.hide_options_if_checked, .show_options_if_checked', '.hidden_option').show();
|
|
234 | 234 | });
|
235 | 235 |
|
236 | 236 | /* Apply Sub tab selected script */
|
237 |
| - $('div.a3_subsubsub_section ul.subsubsub li a:eq(0)').addClass('current'); |
238 |
| - $('div.a3_subsubsub_section .section:gt(0)').hide(); |
239 |
| - $('div.a3_subsubsub_section ul.subsubsub li a:gt(0)').each(function(){ |
| 237 | + $('div.a3_subsubsub_section ul.subsubsub li a').eq(0).addClass('current'); |
| 238 | + $('div.a3_subsubsub_section .section').slice(1).hide(); |
| 239 | + $('div.a3_subsubsub_section ul.subsubsub li a').slice(1).each(function(){ |
240 | 240 | if( $(this).attr('class') == 'current') {
|
241 | 241 | $('div.a3_subsubsub_section ul.subsubsub li a').removeClass('current');
|
242 | 242 | $(this).addClass('current');
|
|
251 | 251 |
|
252 | 252 | section.find('a').removeClass('current');
|
253 | 253 |
|
254 |
| - if ( section.find('.section:visible').size() > 0 ) { |
| 254 | + if ( section.find('.section:visible').length > 0 ) { |
255 | 255 | section.find('.section:visible').fadeOut( 100, function() {
|
256 | 256 | section.find( target ).fadeIn('fast');
|
257 | 257 | });
|
|
336 | 336 | version_checking_status.css('display', 'none');
|
337 | 337 |
|
338 | 338 | // Get response
|
339 |
| - data = $.parseJSON( response ); |
| 339 | + data = JSON.parse( response ); |
340 | 340 | if ( 0 == data.has_new_version ) {
|
341 | 341 | version_message_container.removeClass('a3rev-ui-new-version-message');
|
342 | 342 | version_message_container.addClass('a3rev-ui-latest-version-message');
|
|
417 | 417 | url: submit_data.ajax_url,
|
418 | 418 | data: submit_data.data,
|
419 | 419 | success: function ( response ) {
|
420 |
| - data = $.parseJSON( response ); |
| 420 | + data = JSON.parse( response ); |
421 | 421 | $('#' + bt_ajax_submit.attr('id') ).trigger("a3rev-ui-ajax_submit-completed", [ bt_ajax_submit, data ]);
|
422 | 422 |
|
423 | 423 | setTimeout( function() {
|
|
522 | 522 | url: submit_data.ajax_url,
|
523 | 523 | data: submit_data.data,
|
524 | 524 | success: function ( response ) {
|
525 |
| - result = $.parseJSON( response ); |
| 525 | + result = JSON.parse( response ); |
526 | 526 |
|
527 | 527 | new_items = result.current_items;
|
528 | 528 |
|
|
0 commit comments