From: Anthony Talarico Date: Wed, 1 Jun 2016 18:46:15 +0000 (-0400) Subject: hiding 'bars' view sortcode attribute for other shortcodes that don't use it X-Git-Tag: v2.0.4^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=2f83b13bb570f2d488d1cb9444b1e22d9901b4ef;p=WP-Plugins%2Fglm-member-db.git hiding 'bars' view sortcode attribute for other shortcodes that don't use it --- diff --git a/js/shortcodeBuilder.js b/js/shortcodeBuilder.js index 6a5364bb..899fe17c 100644 --- a/js/shortcodeBuilder.js +++ b/js/shortcodeBuilder.js @@ -51,6 +51,7 @@ jQuery(document).ready(function ($) { $("#category-scDropdown").hide(); $("#id-scDropdown").hide(); $("[id^='packageList']").hide(); + $("#view-scDropdown").hide(); } if(shortcodeDropdown === "glm-members-packaging-list"){ @@ -61,6 +62,7 @@ jQuery(document).ready(function ($) { $("#id-scDropdown").hide(); $("#packageListAttr").children().show(); $("[id^='packageList']").show(); + $("#view-scDropdown").hide(); } if (shortcodeDropdown === "glm-members-packaging-detail"){ @@ -70,6 +72,7 @@ jQuery(document).ready(function ($) { $("#detailBtn").hide(); $("#id-scDropdown").show(); $("[id^='packageList']").hide(); + $("#view-scDropdown").hide(); } if (shortcodeDropdown === "glm-members-event-list"){ $("#blank-start-scDropdown").hide(); @@ -78,6 +81,7 @@ jQuery(document).ready(function ($) { $("#detailBtn").hide(); $("[id^='packageList']").hide(); $("#id-scDropdown").hide(); + $("#view-scDropdown").hide(); } if (shortcodeDropdown === "glm-members-event-detail"){ $("#blank-start-scDropdown").hide(); @@ -85,7 +89,9 @@ jQuery(document).ready(function ($) { $("#category-scDropdown").hide(); $("#detailBtn").hide(); $("[id^='packageList']").hide(); - $("#id-scDropdown").hide(); + $("#id-scDropdown").hide(); + $("#view-scDropdown").hide(); + $("#view-scDropdown").hide(); } if (shortcodeDropdown === "glm-members-event-front-add"){ $("#blank-start-scDropdown").hide(); @@ -93,7 +99,8 @@ jQuery(document).ready(function ($) { $("#category-scDropdown").hide(); $("#detailBtn").hide(); $("[id^='packageList']").hide(); - $("#id-scDropdown").hide(); + $("#id-scDropdown").hide(); + $("#view-scDropdown").hide(); } });