Changeset 2122321
- Timestamp:
- 07/12/2019 10:39:36 PM (7 years ago)
- Location:
- pinecast-wp-sync
- Files:
-
- 6 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from pinecast-wp-sync/trunk)
-
tags/1.0.1/dist/admin/js/pinecast.min.js (modified) (1 diff)
-
tags/1.0.1/includes/admin/views/podcast-row.php (modified) (2 diffs)
-
tags/1.0.1/readme.txt (modified) (1 diff)
-
trunk/dist/admin/js/pinecast.min.js (modified) (1 diff)
-
trunk/includes/admin/views/podcast-row.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pinecast-wp-sync/tags/1.0.1/dist/admin/js/pinecast.min.js
r2120413 r2122321 1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e. pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.find(".otherwise-required").attr("required","required"),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery); -
pinecast-wp-sync/tags/1.0.1/includes/admin/views/podcast-row.php
r2120413 r2122321 31 31 type="text" 32 32 value="<?php echo esc_attr( $podcast->get_name() ); ?>" 33 class="feed-name "34 required33 class="feed-name otherwise-required" 34 <?php if ($podcast->get_feed_url()) {echo 'required';} ?> 35 35 > 36 36 </div> … … 46 46 <?php if ($podcast->get_feed_url()) {echo 'readonly';} ?> 47 47 pattern="https?://.+" 48 required 48 class="otherwise-required" 49 <?php if ($podcast->get_feed_url()) {echo 'required';} ?> 49 50 > 50 51 </div> -
pinecast-wp-sync/tags/1.0.1/readme.txt
r2120417 r2122321 5 5 Tested up to: 5.2.2 6 6 Stable tag: 1.0 7 Requires PHP: 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
pinecast-wp-sync/trunk/dist/admin/js/pinecast.min.js
r2120413 r2122321 1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e. pinecastFeed(),e.pinecastFeed("open")}})}(jQuery);1 "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(a){a(function(){a(".pinecast-feed").each(function(){a(this).pinecastFeed()})}),a.fn.pinecastFeed=function(){return new pinecastFeed(this),this};var t={init:function(e){this.find(".pinecast-feed-header").on("click",function(e){a(this).parents(".pinecast-feed").pinecastFeed("toggle")}),this.find(".feed-name").on("keyup",function(e){a(this).parents(".pinecast-feed").pinecastFeed("updateName",e.target.value)}),this.find(".pinecast-sync-now:not([disabled])").on("click",function(e){e.preventDefault(),a(this).parents(".pinecast-feed").pinecastFeed("sync")})},open:function(){this.addClass("open")},close:function(){this.removeClass("open")},toggle:function(){this.hasClass("open")?this.pinecastFeed("close"):this.pinecastFeed("open")},updateName:function(e){this.find(".pinecast-feed-header .title").html(e)},sync:function(){var t=a(this),n=t.find(".pinecast-sync-now");if(!n.hasClass("disabled")){n.addClass("disabled");var i=t.find(".sync-spinner");i.addClass("is-active");var e={action:"pinecast_sync_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){i.removeClass("is-active"),n.removeClass("disabled"),e.last_updated&&t.find(".last-updated").html(e.last_updated)})}},delete:function(){var e={action:"pinecast_delete_podcast",podcast:a(this).attr("data-podcast-id"),nonce:pinecast.nonce};a.post(ajaxurl,e,function(e){})}};a.fn.pinecastFeed=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==_typeof(e)&&e?void a.error("Method "+e+" does not exist on jQuery.pinecastFeed"):t.init.apply(this,arguments)},a(".pinecast-feeds-wrap").repeater({addTrigger:"#pinecast-add-podcast",removeTrigger:".pinecast-feed .delete",template:".pinecast-feed-template .pinecast-feed",elementWrap:".pinecast-feed",elementsContainer:".pinecast-feeds",removeElement:function(e){e.remove(),a(e).pinecastFeed("delete")},onAddElement:function(e,t,n){var i=Math.floor(899999999*Math.random()+1e8);e.find("input[name], select[name]").attr("name",function(e,t){return t.replace("9999",i)||t}),e.find("input[id], select[id]").attr("id",function(e,t){return t.replace("9999",i)||t}),e.find(".otherwise-required").attr("required","required"),e.pinecastFeed(),e.pinecastFeed("open")}})}(jQuery); -
pinecast-wp-sync/trunk/includes/admin/views/podcast-row.php
r2120413 r2122321 31 31 type="text" 32 32 value="<?php echo esc_attr( $podcast->get_name() ); ?>" 33 class="feed-name "34 required33 class="feed-name otherwise-required" 34 <?php if ($podcast->get_feed_url()) {echo 'required';} ?> 35 35 > 36 36 </div> … … 46 46 <?php if ($podcast->get_feed_url()) {echo 'readonly';} ?> 47 47 pattern="https?://.+" 48 required 48 class="otherwise-required" 49 <?php if ($podcast->get_feed_url()) {echo 'required';} ?> 49 50 > 50 51 </div> -
pinecast-wp-sync/trunk/readme.txt
r2120417 r2122321 5 5 Tested up to: 5.2.2 6 6 Stable tag: 1.0 7 Requires PHP: 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.