Changeset 2342838
- Timestamp:
- 07/18/2020 05:25:47 PM (6 years ago)
- Location:
- total-donations/trunk
- Files:
-
- 9 edited
-
admin/admin-campaign.php (modified) (3 diffs)
-
admin/admin-reports.php (modified) (1 diff)
-
ajax/migla_ajax.php (modified) (1 diff)
-
assets/js/admin/admin-campaign.js (modified) (6 diffs)
-
assets/js/admin/admin-email-receipt-settings.js (modified) (1 diff)
-
classes/CLASS_TIME.php (modified) (1 diff)
-
migla-donation-class.php (modified) (1 diff)
-
migla-donations.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
total-donations/trunk/admin/admin-campaign.php
r2340271 r2342838 236 236 ?> 237 237 238 <li class='ui-state-default formfield clearfix formfield_campai n'>238 <li class='ui-state-default formfield clearfix formfield_campaign' data-showed="<?php if( $showed == '1' ) echo "yes";?>"> 239 239 <input type='hidden' name='label' class="cmp_label" value="<?php echo esc_html($nama);?>" /> 240 240 <input type='hidden' name='target' class="cmp_target" value="<?php echo esc_html($target);?>" /> … … 292 292 <span> 293 293 <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'/> 295 295 <?php echo __(" Show","migla-donation");?> 296 296 </label> … … 299 299 <span> 300 300 <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);?> /> 302 302 <?php echo __(" Deactived","migla-donation");?> 303 303 </label> -
total-donations/trunk/admin/admin-reports.php
r2335119 r2342838 395 395 <input type="hidden" id='mg_frm_post_period' name="p" value="active"> 396 396 </form> 397 <section class="panel panel-featured-left panel-featured-primary">397 <section class="panel panel-featured-left panel-featured-primary"> 398 398 <header class="panel-heading"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 399 399 <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 741 741 { 742 742 $u = new WP_User( $user ); 743 $u->add_role('contributor'); 743 744 $u->add_role( $role ); 744 745 } -
total-donations/trunk/assets/js/admin/admin-campaign.js
r2340271 r2342838 58 58 { 59 59 jQuery(".mg_campaign_list").sortable({ 60 placeholder: ".formfield li", 60 61 helper : "clone", 61 62 revert : true, 62 63 forcePlaceholderSize: true, 63 64 axis : 'y', 64 start: function (e, ui) { 65 start: function (e, ui) { 65 66 }, 66 67 update: function (e, ui) { 67 68 }, 68 69 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 } 69 75 }, 70 76 received: function(e, ui){ … … 114 120 } 115 121 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 }); 117 139 118 140 }, … … 127 149 }); //outer ajax 128 150 129 saved('#miglaAddCampaign'); 151 saved('#miglaAddCampaign'); 130 152 131 153 }//trim … … 280 302 var lbl = change_to_html( label ); 281 303 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'>"; 283 305 newComer = newComer + "<input type='hidden' name='oldlabel' value='"+lbl+"' />"; 284 306 newComer = newComer + "<input type='hidden' name='label' value='"+lbl+"' />"; … … 307 329 c = c + 1; 308 330 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>"; 311 333 312 334 newComer = newComer + "<span><button class='removeCampaignField' data-toggle='modal' data-target='#confirm-delete'><i class='fa fa-fw fa-trash'></i></button></span>"; … … 1967 1989 }); 1968 1990 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 }); 1971 2006 1972 2007 jQuery(".mg-li-tab").click(function(){ -
total-donations/trunk/assets/js/admin/admin-email-receipt-settings.js
r2334692 r2342838 239 239 type : "post", 240 240 url : miglaAdminAjax.ajaxurl, 241 data : { action : " miglaA_save_email_part2",241 data : { action : "TotalDonationsAjax_save_email_part2", 242 242 email_id : jQuery("#migla_email_id").val(), 243 243 language : jQuery('#migla_language').val(), -
total-donations/trunk/classes/CLASS_TIME.php
r2334692 r2342838 56 56 } 57 57 } 58 ?> -
total-donations/trunk/migla-donation-class.php
r2340271 r2342838 9 9 { 10 10 if( ! defined( 'Totaldonations_VERSION' ) ) 11 define( 'Totaldonations_VERSION', '3.0. 5' );11 define( 'Totaldonations_VERSION', '3.0.6' ); 12 12 13 13 if( ! defined( 'Totaldonations_FREE' ) ) -
total-donations/trunk/migla-donations.php
r2340271 r2342838 6 6 Domain Path: /languages 7 7 Description: A plugin for accepting donations. 8 Version: 3.0. 58 Version: 3.0.6 9 9 Author: Binti Brindamour and Astried Silvanie 10 10 Author URI: https://totaldonations.com/ -
total-donations/trunk/readme.txt
r2340271 r2342838 137 137 == Changelog == 138 138 139 = [3.0.6] - 2020-07-18 = 140 141 * Fix: Missing Ajax Functions for Email 142 * Fix: Unchecked radio button on campaign sorter 139 143 140 144 = [3.0.5] - 2020-07-12 =
Note: See TracChangeset
for help on using the changeset viewer.