From 6afeaf940d5e7d94a0bf8c8109d9dd27357db029 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 11 Feb 2019 15:18:17 -0500 Subject: [PATCH] adding reset function when shortcode is reset or the page is reset --- js/shortcodeBuilder.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/shortcodeBuilder.js b/js/shortcodeBuilder.js index 6aac3a78..5bc25c39 100644 --- a/js/shortcodeBuilder.js +++ b/js/shortcodeBuilder.js @@ -1,9 +1,3 @@ -/** - * Other needed Admin JS code - * Block level comments used temporarily to make finding sections of the code easier - * a lot of duplicate code and unnecessary variables I need to clean up, need to change case from camel case to snake case - * need to create a function for setting the editor content because it is duplicated a few times - */ jQuery(function ($) { var shortcode_string = $("
", { text: '[glm-members-list', @@ -43,6 +37,7 @@ jQuery(function ($) { tile.appendTo(elHook); } function setupAttributes(state){ + $(".shortcode-selection").each(function() { this.selectedIndex = 0 }); $("#shortcode-preview").empty(); $(".shortcode-tile-container").empty(); shortcodeAttributes = { -- 2.17.1