Changeset 2290154
- Timestamp:
- 04/23/2020 01:55:44 PM (6 years ago)
- Location:
- buddypress-edit-activity
- Files:
-
- 28 added
- 5 edited
-
tags/1.1.1 (added)
-
tags/1.1.1/Gruntfile.js (added)
-
tags/1.1.1/assets (added)
-
tags/1.1.1/assets/js (added)
-
tags/1.1.1/assets/js/buddypress-edit-activity.js (added)
-
tags/1.1.1/assets/js/buddypress-edit-activity.min.js (added)
-
tags/1.1.1/buddypress-edit-activity.php (added)
-
tags/1.1.1/includes (added)
-
tags/1.1.1/includes/admin.php (added)
-
tags/1.1.1/includes/main-class.php (added)
-
tags/1.1.1/index.php (added)
-
tags/1.1.1/languages (added)
-
tags/1.1.1/languages/buddypress-edit-activity-de_DE.mo (added)
-
tags/1.1.1/languages/buddypress-edit-activity-de_DE.po (added)
-
tags/1.1.1/languages/buddypress-edit-activity-en_US.mo (added)
-
tags/1.1.1/languages/buddypress-edit-activity-en_US.po (added)
-
tags/1.1.1/languages/buddypress-edit-activity-fa_IR.mo (added)
-
tags/1.1.1/languages/buddypress-edit-activity-fa_IR.po (added)
-
tags/1.1.1/languages/buddypress-edit-activity-fr_FR.mo (added)
-
tags/1.1.1/languages/buddypress-edit-activity-fr_FR.po (added)
-
tags/1.1.1/languages/buddypress-edit-activity-it_IT.mo (added)
-
tags/1.1.1/languages/buddypress-edit-activity-it_IT.po (added)
-
tags/1.1.1/languages/buddypress-edit-activity-ru_RU.mo (added)
-
tags/1.1.1/languages/buddypress-edit-activity-ru_RU.po (added)
-
tags/1.1.1/languages/buddypress-edit-activity.pot (added)
-
tags/1.1.1/license.txt (added)
-
tags/1.1.1/package.json (added)
-
tags/1.1.1/readme.txt (added)
-
trunk/assets/js/buddypress-edit-activity.js (modified) (4 diffs)
-
trunk/assets/js/buddypress-edit-activity.min.js (modified) (1 diff)
-
trunk/buddypress-edit-activity.php (modified) (2 diffs)
-
trunk/languages/buddypress-edit-activity.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-edit-activity/trunk/assets/js/buddypress-edit-activity.js
r1795112 r2290154 30 30 B_E_A_.current_activity_org = $link.closest('[id^=acomment]').find(' > .acomment-content').html(); 31 31 } else { 32 B_E_A_.current_activity_org = $link.closest(' .activity-content').find('.activity-inner').html();32 B_E_A_.current_activity_org = $link.closest('li').find('.activity-inner').html(); 33 33 } 34 34 … … 60 60 } else { 61 61 //editing activity 62 $link.closest(' .activity-content').find('.activity-inner').html('').hide().after($form_wrapper);62 $link.closest('li').find('.activity-inner').html('').hide().after($form_wrapper); 63 63 $cancel_button.addClass('button'); 64 64 } … … 103 103 } else { 104 104 //editing activity 105 $link.closest(' .activity-content').find('.activity-inner').html(response.content).show();105 $link.closest('li').find('.activity-inner').html(response.content).show(); 106 106 } 107 107 … … 135 135 } else { 136 136 //editing activity 137 $cancel_button.closest(' .activity-content').find('.activity-inner').html(B_E_A_.current_activity_org).show();138 $save_button = $cancel_button.closest(' .activity-content').find('.buddyboss_edit_activity.action-save');137 $cancel_button.closest('li').find('.activity-inner').html(B_E_A_.current_activity_org).show(); 138 $save_button = $cancel_button.closest('li').find('.buddyboss_edit_activity.action-save'); 139 139 } 140 140 -
buddypress-edit-activity/trunk/assets/js/buddypress-edit-activity.min.js
r1795112 r2290154 1 function buddypress_edit_activity_initiate(a){return jQuery(a).hasClass("action-save")?buddypress_edit_activity_save(a):buddypress_edit_activity_get(a),!1}function buddypress_edit_activity_get(a){if(1==jQuery("li.activity-item #buddypress-edit-activity-wrapper").length&&($edit_wrapper=jQuery("li.activity-item #buddypress-edit-activity-wrapper"),$cancel_button=$edit_wrapper.next().children(".buddyboss_edit_activity_cancel"),$cancel_button.trigger("click"),window.keep_activity_changes))return!1;$link=jQuery(a),$form=jQuery("#frm_buddypress-edit-activity"),$form_wrapper=$form.parent(),$link.addClass("loading"),$link.hasClass("buddyboss_edit_activity_comment")?B_E_A_.current_activity_org=$link.closest("[id^=acomment]").find(" > .acomment-content").html():B_E_A_.current_activity_org=$link.closest(" .activity-content").find(".activity-inner").html();var b={action:$form.find('input[name="action_get"]').val(),buddypress_edit_activity_nonce:$form.find('input[name="buddypress_edit_activity_nonce"]').val(),activity_id:$link.data("activity_id")};jQuery.ajax({type:"POST",url:ajaxurl,data:b,success:function(a){if(a=jQuery.parseJSON(a),a.status){$link.removeClass("loading").addClass("action-save").html(B_E_A_.button_text.save);var c=jQuery("<a href='#'>").addClass("bp-secondary-action buddyboss_edit_activity_cancel").html(B_E_A_.button_text.cancel);$link.before(c),c.attr("onclick","return buddypress_edit_activity_cancel(this);"),c.data("target_type","activity"),$link.hasClass("buddyboss_edit_activity_comment")?($link.closest("[id^=acomment]").find(" > .acomment-content").html("").hide().after($form_wrapper),c.data("target_type","comment")):($link.closest(".activity-content").find(".activity-inner").html("").hide().after($form_wrapper),c.addClass("button")),$form_wrapper.show(),$form.find('input[name="activity_id"]').val(b.activity_id),$form.find("textarea").val(a.content)}}})}function buddypress_edit_activity_save(a){$link=jQuery(a),$form=jQuery("#frm_buddypress-edit-activity"),$form_wrapper=$form.parent(),$link.addClass("loading"),jQuery(".buddyboss_edit_activity_cancel").remove();var b={action:$form.find('input[name="action_save"]').val(),buddypress_edit_activity_nonce:$form.find('input[name="buddypress_edit_activity_nonce"]').val(),activity_id:$link.data("activity_id"),content:$form.find("textarea").val()};jQuery.ajax({type:"POST",url:ajaxurl,data:b,success:function(a){a=jQuery.parseJSON(a),a.status&&($link.removeClass("loading").removeClass("action-save").html(B_E_A_.button_text.edit),$link.hasClass("buddyboss_edit_activity_comment")?$link.closest("[id^=acomment]").find(" > .acomment-content").html(a.content).show():$link.closest(".activity-content").find(".activity-inner").html(a.content).show(),$form_wrapper.hide(),jQuery("body").append($form_wrapper),window.activity_content_changed=!1,window.keep_activity_changes=!1)}})}function buddypress_edit_activity_cancel(a){if(window.activity_content_changed&&!window.confirm(B_E_A_.warn_activity_changes))return window.keep_activity_changes=!0,!1;var b=jQuery(a),c=jQuery("#frm_buddypress-edit-activity"),d=c.parent(),e="";return"comment"==b.data("target_type")?(b.closest("[id^=acomment]").find(" > .acomment-content").html(B_E_A_.current_activity_org).show(),e=b.closest("[id^=acomment]").find(".buddyboss_edit_activity_comment.action-save")):(b.closest(".activity-content").find(".activity-inner").html(B_E_A_.current_activity_org).show(),e=b.closest(".activity-content").find(".buddyboss_edit_activity.action-save")),e.removeClass("action-save").html(B_E_A_.button_text.edit),d.hide(),jQuery("body").append(d),b.remove(),window.activity_content_changed=!1,window.keep_activity_changes=!1,!1}jQuery('textarea[name="activity_content"]').on("change",function(a){window.activity_content_changed=!0}),jQuery(".acomment-reply").on("click",function(a){1==jQuery("li.activity-item #buddypress-edit-activity-wrapper").length&&($edit_wrapper=jQuery("li.activity-item #buddypress-edit-activity-wrapper"),$cancel_button=$edit_wrapper.next().children(".buddyboss_edit_activity_cancel"),$cancel_button.trigger("click"))});1 function buddypress_edit_activity_initiate(a){return jQuery(a).hasClass("action-save")?buddypress_edit_activity_save(a):buddypress_edit_activity_get(a),!1}function buddypress_edit_activity_get(a){if(1==jQuery("li.activity-item #buddypress-edit-activity-wrapper").length&&($edit_wrapper=jQuery("li.activity-item #buddypress-edit-activity-wrapper"),$cancel_button=$edit_wrapper.next().children(".buddyboss_edit_activity_cancel"),$cancel_button.trigger("click"),window.keep_activity_changes))return!1;$link=jQuery(a),$form=jQuery("#frm_buddypress-edit-activity"),$form_wrapper=$form.parent(),$link.addClass("loading"),$link.hasClass("buddyboss_edit_activity_comment")?B_E_A_.current_activity_org=$link.closest("[id^=acomment]").find(" > .acomment-content").html():B_E_A_.current_activity_org=$link.closest("li").find(".activity-inner").html();var b={action:$form.find('input[name="action_get"]').val(),buddypress_edit_activity_nonce:$form.find('input[name="buddypress_edit_activity_nonce"]').val(),activity_id:$link.data("activity_id")};jQuery.ajax({type:"POST",url:ajaxurl,data:b,success:function(a){if(a=jQuery.parseJSON(a),a.status){$link.removeClass("loading").addClass("action-save").html(B_E_A_.button_text.save);var c=jQuery("<a href='#'>").addClass("bp-secondary-action buddyboss_edit_activity_cancel").html(B_E_A_.button_text.cancel);$link.before(c),c.attr("onclick","return buddypress_edit_activity_cancel(this);"),c.data("target_type","activity"),$link.hasClass("buddyboss_edit_activity_comment")?($link.closest("[id^=acomment]").find(" > .acomment-content").html("").hide().after($form_wrapper),c.data("target_type","comment")):($link.closest("li").find(".activity-inner").html("").hide().after($form_wrapper),c.addClass("button")),$form_wrapper.show(),$form.find('input[name="activity_id"]').val(b.activity_id),$form.find("textarea").val(a.content)}}})}function buddypress_edit_activity_save(a){$link=jQuery(a),$form=jQuery("#frm_buddypress-edit-activity"),$form_wrapper=$form.parent(),$link.addClass("loading"),jQuery(".buddyboss_edit_activity_cancel").remove();var b={action:$form.find('input[name="action_save"]').val(),buddypress_edit_activity_nonce:$form.find('input[name="buddypress_edit_activity_nonce"]').val(),activity_id:$link.data("activity_id"),content:$form.find("textarea").val()};jQuery.ajax({type:"POST",url:ajaxurl,data:b,success:function(a){a=jQuery.parseJSON(a),a.status&&($link.removeClass("loading").removeClass("action-save").html(B_E_A_.button_text.edit),$link.hasClass("buddyboss_edit_activity_comment")?$link.closest("[id^=acomment]").find(" > .acomment-content").html(a.content).show():$link.closest("li").find(".activity-inner").html(a.content).show(),$form_wrapper.hide(),jQuery("body").append($form_wrapper),window.activity_content_changed=!1,window.keep_activity_changes=!1)}})}function buddypress_edit_activity_cancel(a){if(window.activity_content_changed&&!window.confirm(B_E_A_.warn_activity_changes))return window.keep_activity_changes=!0,!1;var b=jQuery(a),c=jQuery("#frm_buddypress-edit-activity"),d=c.parent(),e="";return"comment"==b.data("target_type")?(b.closest("[id^=acomment]").find(" > .acomment-content").html(B_E_A_.current_activity_org).show(),e=b.closest("[id^=acomment]").find(".buddyboss_edit_activity_comment.action-save")):(b.closest("li").find(".activity-inner").html(B_E_A_.current_activity_org).show(),e=b.closest("li").find(".buddyboss_edit_activity.action-save")),e.removeClass("action-save").html(B_E_A_.button_text.edit),d.hide(),jQuery("body").append(d),b.remove(),window.activity_content_changed=!1,window.keep_activity_changes=!1,!1}jQuery('textarea[name="activity_content"]').on("change",function(a){window.activity_content_changed=!0}),jQuery(".acomment-reply").on("click",function(a){1==jQuery("li.activity-item #buddypress-edit-activity-wrapper").length&&($edit_wrapper=jQuery("li.activity-item #buddypress-edit-activity-wrapper"),$cancel_button=$edit_wrapper.next().children(".buddyboss_edit_activity_cancel"),$cancel_button.trigger("click"))}); -
buddypress-edit-activity/trunk/buddypress-edit-activity.php
r2101664 r2290154 6 6 * Author: BuddyBoss 7 7 * Author URI: https://www.buddyboss.com/ 8 * Version: 1.1. 08 * Version: 1.1.1 9 9 */ 10 10 // Exit if accessed directly … … 19 19 // Codebase version 20 20 if (!defined( 'BUDDYBOSS_EDIT_ACTIVITY_PLUGIN_VERSION' ) ) { 21 define( 'BUDDYBOSS_EDIT_ACTIVITY_PLUGIN_VERSION', '1.1. 0' );21 define( 'BUDDYBOSS_EDIT_ACTIVITY_PLUGIN_VERSION', '1.1.1' ); 22 22 } 23 23 -
buddypress-edit-activity/trunk/languages/buddypress-edit-activity.pot
r1795112 r2290154 1 # Copyright (C) 20 181 # Copyright (C) 2020 2 2 # This file is distributed under the same license as the package. 3 3 msgid "" … … 5 5 "Project-Id-Version: \n" 6 6 "Report-Msgid-Bugs-To: https://www.buddyboss.com/contact/\n" 7 "POT-Creation-Date: 20 18-01-01 09:19:26+00:00\n"7 "POT-Creation-Date: 2020-04-23 13:27:09+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 20 18-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: BuddyBoss <[email protected]>\n" 13 13 "Language-Team: BuddyBoss <[email protected]>\n" -
buddypress-edit-activity/trunk/readme.txt
r2101664 r2290154 4 4 Tags: buddypress, social networking, activity, profiles, messaging, friends, groups, forums, notifications, settings, social, community, networks, networking 5 5 Requires at least: 3.8 6 Tested up to: 5. 2.17 Stable tag: 1.1. 06 Tested up to: 5.4 7 Stable tag: 1.1.1 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 60 60 61 61 == Changelog == 62 63 = 1.1.1 = 64 * Tested with WordPress 5.4 62 65 63 66 = 1.1.0 =
Note: See TracChangeset
for help on using the changeset viewer.