Plugin Directory

Changeset 1455117


Ignore:
Timestamp:
07/15/2016 08:04:11 AM (10 years ago)
Author:
InTrigger
Message:

Fix jQuery issue

Location:
intrigger/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • intrigger/trunk/asset/css/admin-other.css

    r1406624 r1455117  
    236236    border-color: cadetblue;
    237237}
    238 .itrr_setting_confirm_yes
     238#itrr_setting_confirm_yes
    239239{
    240240    margin-left: 20px;
    241241    border-radius: 4px;
    242242}
    243 .itrr_setting_confirm_cancel
     243#itrr_setting_confirm_cancel
    244244{
    245245    margin-left: 30px;
  • intrigger/trunk/asset/js/back.js

    r1406624 r1455117  
    220220    });
    221221    // for searching posts and pages by keyword
    222     jQuery('#itrr_search_posts').live('click' , function(){
     222    jQuery(document).on('click', '#itrr_search_posts', function(){
    223223        // hide confirm message;
    224224        jQuery('#itrr_search_posts_results_message').hide(800);
     
    309309    });
    310310    // confirm selected lists.
    311     jQuery('#itrr_search_confirm_button').live('click' , function(event){
     311    jQuery(document).on('click', '#itrr_search_confirm_button', function(event){
    312312        event.preventDefault();
    313313        var reg_url = '';
     
    353353    });
    354354    // click cancel
    355     jQuery('#itrr_search_cancel_button').live('click' , function(event){
     355    jQuery(document).on('click', '#itrr_search_cancel_button', function(event){
    356356        event.preventDefault();
    357357        jQuery('#itrr_search_result_list_all').prop('checked' , false);
     
    361361    });
    362362
    363     jQuery('#itrr_clear_setting').on('click' , function(event){
     363    jQuery(document).on('click', '#itrr_clear_setting', function(event){
    364364        event.preventDefault();
    365365        jQuery('#itrr_clear_setting_panel').show(800);
    366366
    367367    });
    368     jQuery('.itrr_setting_confirm_yes').on('click', function(event){
     368    jQuery(document).on('click', '#itrr_setting_confirm_yes', function(event){
    369369        event.preventDefault();
    370370        var security = jQuery('#itrr_setting_ajax_nonce').val();
     
    373373            clear: 'yes',
    374374            security : security
    375         }
     375        };
     376        jQuery(this).prop("disabled", true);
     377        jQuery('#itrr_clear_setting_panel').css('opacity','0.6');
    376378        jQuery.ajax({
    377379            url : itrr_admin_ajax_url,
     
    382384                if ( respond == 'success')
    383385                {
     386                    jQuery('#itrr_setting_confirm_yes').prop('disabled', false);
     387                    jQuery('#itrr_clear_setting_panel').css('opacity','1');
    384388                    jQuery('#itrr_clear_setting_panel').hide();
    385389                    jQuery('#itrr_setting_clear_success_message').show(400);
     
    439443
    440444    });
    441     jQuery('.itrr_setting_confirm_cancel').on('click', function(event) {
     445    jQuery(document).on('click', '#itrr_setting_confirm_cancel', function(event) {
    442446        event.preventDefault();
    443447        jQuery('#itrr_clear_setting_panel').hide(800);
  • intrigger/trunk/asset/js/front.js

    r1406624 r1455117  
    9292     * Process continue-reading & inline & float-bar ||||| for drive-traffic & custom.
    9393     */
    94     jQuery('a[itrr-btn="continue"],a[itrr-btn="inline"],a[itrr-btn="float"]').live('click',function() {
     94    jQuery(document).on('click', 'a[itrr-btn="continue"],a[itrr-btn="inline"],a[itrr-btn="float"]', function() {
    9595        var indget_id = jQuery(this).attr('itrr-indget-id');
    9696        var post_id = jQuery(this).attr('itrr-post-id');
     
    147147        jQuery(this).removeClass('error');
    148148    });
    149     jQuery('a[itrr-btn="continue_collect"],a[itrr-btn="inline_collect"],a[itrr-btn="float_collect"]').live('click',function() {
     149    jQuery(document).on('click', 'a[itrr-btn="continue_collect"],a[itrr-btn="inline_collect"],a[itrr-btn="float_collect"]', function() {
    150150
    151151        var indget_id = jQuery(this).attr('itrr-indget-id');
     
    266266    var admin_bar = jQuery('#wpadminbar').height() != null ? jQuery('#wpadminbar').height() : 0;
    267267
    268     jQuery("#int_indget_float_close_top").live('click',function(){
     268    jQuery(document).on('click','#int_indget_float_close_top',function(){
    269269        var pos = jQuery("#float_bar_wrap").height();
    270270        jQuery("#float_bar_wrap").animate({top: -pos-100+admin_bar+"px"});
     
    272272        jQuery("html").animate({'padding-top': admin_bar + 'px'});
    273273    });
    274     jQuery("#int_indget_float_open_top").live('click',function(){
     274    jQuery(document).on('click', '#int_indget_float_open_top', function(){
    275275        jQuery("#float_bar_wrap").animate({'top': admin_bar + 'px'});
    276276        jQuery("#int_indget_float_open_top").animate({top: admin_bar-96+'px'});
     
    278278    });
    279279    //
    280     jQuery("#int_indget_float_close_bottom").live('click',function(){
     280    jQuery(document).on('click', '#int_indget_float_close_bottom', function(){
    281281        var pos = jQuery("#float_bar_wrap").height();
    282282        jQuery("#float_bar_wrap").animate({bottom: -pos-100+"px"});
     
    284284        jQuery("html").animate({'padding-bottom': '0px'});
    285285    });
    286     jQuery("#int_indget_float_open_bottom").live('click',function(){
     286    jQuery(document).on('click','int_indget_float_open_bottom', function(){
    287287        jQuery("#float_bar_wrap").animate({bottom: "0px"});
    288288        jQuery("#int_indget_float_open_bottom").animate({bottom: "-96px"});
  • intrigger/trunk/intrigger.php

    r1436965 r1455117  
    44Plugin URI: http://intriggerapp.com/
    55Description: InTrigger Plugin allows webmasters to set up on-site personalization scenarios in order to generate more subscribers and conversions.
    6 Version: 1.0.3
     6Version: 1.0.4
    77Author: InTrigger
    88Author URI: http://intriggerapp.com/
  • intrigger/trunk/page/page-setting.php

    r1436965 r1455117  
    186186                            </div>
    187187                            <div class="itrr_setting_confirm_buttons">
    188                                 <button class="itrr_setting_confirm_yes itrr_button"><?php _e('Yes' , 'itrr_lang');?></button>
    189                                 <button class="itrr_setting_confirm_cancel itrr_button"><?php _e('No' , 'itrr_lang'); ?></button>
     188                                <button id="itrr_setting_confirm_yes" class="itrr_button"><?php _e('Yes' , 'itrr_lang');?></button>
     189                                <button id="itrr_setting_confirm_cancel" class="itrr_button"><?php _e('No' , 'itrr_lang'); ?></button>
    190190                            </div>
    191191                        </div>
  • intrigger/trunk/readme.txt

    r1436965 r1455117  
    120120* Fix statistics issue in Scenarios / Indgets pages
    121121= 1.0.3 =
    122 * add Pages excluded rules
     122* Add Pages excluded rules
     123= 1.0.4 =
     124* Fix deprecated jQuery function.
Note: See TracChangeset for help on using the changeset viewer.