testing jquery function to expand tree view
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 8 Jan 2016 20:51:13 +0000 (15:51 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 8 Jan 2016 20:51:13 +0000 (15:51 -0500)
js/app.js
js/custom/upcp.js

index c8d9df5..55a6c4d 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -148,18 +148,17 @@ $(document).ready(function () {
             });
         }  
     } 
+    window.onload = 
     $("document").ready(function() {
+        $(".hitarea").trigger('click');
         setTimeout(function() {
-            $(".hitarea").trigger('click');
+            $(".expandable).trigger('click');
         },10);
-        setTimeout(function() {
-            $(".expandable-hitarea").trigger('click');
-        },10);
-        $(".hitarea").click(function(){
-           
+        $(".hitarea").click(function(){ 
         });
-        $(".expandable-hitarea").click(function(){
-
+        $(".expandable").click(function(){ 
+            
         });
-    });
+            
+    }); 
 });
\ No newline at end of file
index 44b4fd7..594699a 100644 (file)
@@ -128,18 +128,17 @@ $(document).ready(function () {
             });
         }  
     } 
+    window.onload = 
     $("document").ready(function() {
+        $(".hitarea").trigger('click');
         setTimeout(function() {
-            $(".hitarea").trigger('click');
+            $(".expandable).trigger('click');
         },10);
-        setTimeout(function() {
-            $(".expandable-hitarea").trigger('click');
-        },10);
-        $(".hitarea").click(function(){
-           
+        $(".hitarea").click(function(){ 
         });
-        $(".expandable-hitarea").click(function(){
-
+        $(".expandable").click(function(){ 
+            
         });
-    });
+            
+    }); 
 });
\ No newline at end of file