replaced js that had reset the dropdowns on page reload
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 9 May 2016 20:47:51 +0000 (16:47 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 9 May 2016 20:47:51 +0000 (16:47 -0400)
css/admin.css
js/shortcodeBuilder.js

index aa97d8b..ae19bb7 100644 (file)
@@ -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;
index 85dcf96..7f61837 100644 (file)
@@ -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(){