From: Anthony Talarico Date: Mon, 9 May 2016 20:47:51 +0000 (-0400) Subject: replaced js that had reset the dropdowns on page reload X-Git-Tag: v2.0.0^2~23^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=22467880d15ef8192f707b210db663b57c20aea2;p=WP-Plugins%2Fglm-member-db.git replaced js that had reset the dropdowns on page reload --- diff --git a/css/admin.css b/css/admin.css index aa97d8b3..ae19bb70 100644 --- a/css/admin.css +++ b/css/admin.css @@ -333,7 +333,7 @@ td.glm-nowrap { input[type=submit], input[type=file] { cursor: pointer; } -#showDetail , #showList { +#showDetail label , #showList label { display: block; padding-left: 15px; text-indent: -15px; diff --git a/js/shortcodeBuilder.js b/js/shortcodeBuilder.js index 85dcf969..7f61837e 100644 --- a/js/shortcodeBuilder.js +++ b/js/shortcodeBuilder.js @@ -188,18 +188,18 @@ jQuery(document).ready(function ($) { var blank = document.getElementById('blank-start-scDropdown'); var list = document.getElementById('type-scList'); -// if(scd){ -// window.onload = document.getElementById('shortcodeDropdown').options[0].selected = 'selected'; -// } -// if(catscd){ -// window.onload = document.getElementById('category-scDropdown').options[0].selected = 'selected'; -// } -// if(blank){ -// window.onload = document.getElementById('blank-start-scDropdown').options[0].selected = 'selected'; -// } -// if(list){ -// window.onload = document.getElementById('type-scList').options[0].selected = 'selected'; -// } + if(scd){ + window.onload = document.getElementById('shortcodeDropdown').options[0].selected = 'selected'; + } + if(catscd){ + window.onload = document.getElementById('category-scDropdown').options[0].selected = 'selected'; + } + if(blank){ + window.onload = document.getElementById('blank-start-scDropdown').options[0].selected = 'selected'; + } + if(list){ + window.onload = document.getElementById('type-scList').options[0].selected = 'selected'; + } window.onload = UncheckAll(); function UncheckAll(){