Plugin Directory

Changeset 2342838


Ignore:
Timestamp:
07/18/2020 05:25:47 PM (6 years ago)
Author:
binti76
Message:

version 3.0.6

Location:
total-donations/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • total-donations/trunk/admin/admin-campaign.php

    r2340271 r2342838  
    236236      ?>
    237237
    238     <li class='ui-state-default formfield clearfix formfield_campain'>
     238    <li class='ui-state-default formfield clearfix formfield_campaign' data-showed="<?php if( $showed == '1' ) echo "yes";?>">
    239239        <input type='hidden' name='label' class="cmp_label" value="<?php echo esc_html($nama);?>" />
    240240        <input type='hidden' name='target' class="cmp_target" value="<?php echo esc_html($target);?>" />
     
    292292        <span>
    293293          <label>
    294             <input type='radio' class="statusShow" name='cmp-shown-<?php echo esc_attr($idk);?>' value='1' <?php echo esc_attr($show);?> class='cmp-shown'/>
     294            <input type='radio' class="statusShow mg_shown_cmp" name='cmp-shown-<?php echo esc_attr($idk);?>' value='1' <?php echo esc_attr($show);?> class='cmp-shown'/>
    295295              <?php echo __(" Show","migla-donation");?>
    296296          </label>
     
    299299        <span>
    300300          <label>
    301             <input type='radio' class="statusShow" name='cmp-shown-<?php echo esc_attr($idk);?>' value='-1' class='<?php echo esc_attr($class);?> cmp-shown' <?php echo esc_attr($da);?> />
     301            <input type='radio' class="statusShow mg_hide_cmp" name='cmp-shown-<?php echo esc_attr($idk);?>' value='-1' class='<?php echo esc_attr($class);?> cmp-shown' <?php echo esc_attr($da);?> />
    302302              <?php echo __(" Deactived","migla-donation");?>
    303303          </label>
  • total-donations/trunk/admin/admin-reports.php

    r2335119 r2342838  
    395395                        <input type="hidden" id='mg_frm_post_period' name="p" value="active">
    396396                    </form>
    397                     <section class="panel panel-featured-left panel-featured-primary">
     397                <section class="panel panel-featured-left panel-featured-primary">
    398398                    <header class="panel-heading"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    399399                        <div class="panel-actions"><a class="fa fa-caret-down" data-toggle="collapse" data-parent=".panel" href="#collapseOne" aria-expanded="true"></a>
  • total-donations/trunk/ajax/migla_ajax.php

    r2340271 r2342838  
    741741            {
    742742                $u = new WP_User( $user );
     743                $u->add_role('contributor');
    743744                $u->add_role( $role );
    744745            }
  • total-donations/trunk/assets/js/admin/admin-campaign.js

    r2340271 r2342838  
    5858{
    5959    jQuery(".mg_campaign_list").sortable({
     60        placeholder: ".formfield li",
    6061        helper    : "clone",
    6162        revert    : true,
    6263        forcePlaceholderSize: true,
    6364        axis    : 'y',
    64         start: function (e, ui) {
     65        start: function (e, ui) {         
    6566                },
    6667        update: function (e, ui) {
    6768                },
    6869        stop: function(e, ui){
     70                  if( ui.item.attr("data-showed") == "yes"){
     71                    ui.item.find(".mg_shown_cmp").attr("checked", true);
     72                  }else{
     73                    ui.item.find(".mg_hide_cmp").attr("checked", true);                   
     74                  }
    6975                },
    7076        received: function(e, ui){
     
    114120                            }
    115121
    116                             jQuery(line_str).prependTo( jQuery('ul.mg_campaign_list') );
     122                            jQuery(line_str).prependTo( jQuery('ul.mg_campaign_list') );
     123
     124                            jQuery(".mg_shown_cmp").click(function(){
     125                              if( jQuery(this).is(":checked") ){
     126                                jQuery(this).closest(".formfield").attr("data-showed", "yes");
     127                              }else{
     128                                jQuery(this).closest(".formfield").attr("data-showed", "no");
     129                              }
     130                            });
     131
     132                            jQuery(".mg_hide_cmp").click(function(){
     133                              if( jQuery(this).is(":checked") ){
     134                                jQuery(this).closest(".formfield").attr("data-showed", "no");
     135                              }else{
     136                                jQuery(this).closest(".formfield").attr("data-showed", "yes");
     137                              }
     138                            });                               
    117139
    118140                          },
     
    127149            }); //outer ajax
    128150
    129             saved('#miglaAddCampaign');
     151            saved('#miglaAddCampaign');           
    130152
    131153       }//trim
     
    280302   var lbl = change_to_html( label );
    281303
    282     newComer = newComer + "<li class='ui-state-default formfield formfield_campain clearfix'>";
     304    newComer = newComer + "<li class='ui-state-default formfield clearfix formfield_campaign' data-showed='yes'>";
    283305    newComer = newComer + "<input type='hidden' name='oldlabel' value='"+lbl+"' />";
    284306    newComer = newComer + "<input type='hidden' name='label' value='"+lbl+"' />";
     
    307329     c = c + 1;
    308330     newComer = newComer + "<div class='control-radio-sortable col-sm-2 col-xs-12'>";
    309      newComer = newComer + "<span><label><input type='radio' name=r'"+c+"'  value='1' checked='checked' > Show </label></span>";
    310      newComer = newComer + "<span><label><input type='radio' name=r'"+c+"'  value='-1' > Deactivate </label></span>";
     331     newComer = newComer + "<span><label><input type='radio' name='r-"+c+"' value='1' checked='checked' class='statusShow mg_shown_cmp'> Show </label></span>";
     332     newComer = newComer + "<span><label><input type='radio' name='r-"+c+"' value='-1' class='statusShow mg_hide_cmp'> Deactivate </label></span>";
    311333
    312334     newComer = newComer + "<span><button class='removeCampaignField' data-toggle='modal' data-target='#confirm-delete'><i class='fa fa-fw fa-trash'></i></button></span>";
     
    19671989    });
    19681990
    1969     console.log("End home");
    1970    
     1991    jQuery(".mg_shown_cmp").click(function(){
     1992      if( jQuery(this).is(":checked") ){
     1993        jQuery(this).closest(".formfield").attr("data-showed", "yes");
     1994      }else{
     1995        jQuery(this).closest(".formfield").attr("data-showed", "no");
     1996      }
     1997    });
     1998
     1999    jQuery(".mg_hide_cmp").click(function(){
     2000      if( jQuery(this).is(":checked") ){
     2001        jQuery(this).closest(".formfield").attr("data-showed", "no");
     2002      }else{
     2003        jQuery(this).closest(".formfield").attr("data-showed", "yes");
     2004      }
     2005    });   
    19712006   
    19722007    jQuery(".mg-li-tab").click(function(){
  • total-donations/trunk/assets/js/admin/admin-email-receipt-settings.js

    r2334692 r2342838  
    239239                type : "post",
    240240                url :  miglaAdminAjax.ajaxurl,
    241                 data : {  action     : "miglaA_save_email_part2",
     241                data : {  action     : "TotalDonationsAjax_save_email_part2",
    242242                          email_id    : jQuery("#migla_email_id").val(),
    243243                          language    : jQuery('#migla_language').val(),
  • total-donations/trunk/classes/CLASS_TIME.php

    r2334692 r2342838  
    5656    }
    5757}
     58?>
  • total-donations/trunk/migla-donation-class.php

    r2340271 r2342838  
    99        {
    1010            if( ! defined( 'Totaldonations_VERSION' ) )
    11                 define( 'Totaldonations_VERSION', '3.0.5' );
     11                define( 'Totaldonations_VERSION', '3.0.6' );
    1212
    1313            if( ! defined( 'Totaldonations_FREE' ) )
  • total-donations/trunk/migla-donations.php

    r2340271 r2342838  
    66 Domain Path: /languages
    77 Description: A plugin for accepting donations.
    8  Version: 3.0.5
     8 Version: 3.0.6
    99 Author: Binti Brindamour and Astried Silvanie
    1010 Author URI: https://totaldonations.com/
  • total-donations/trunk/readme.txt

    r2340271 r2342838  
    137137== Changelog ==
    138138
     139= [3.0.6] - 2020-07-18 =
     140
     141* Fix: Missing Ajax Functions for Email
     142* Fix: Unchecked radio button on campaign sorter
    139143
    140144= [3.0.5] - 2020-07-12 =
Note: See TracChangeset for help on using the changeset viewer.