trying deffered method for child object click
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 8 Jan 2016 21:27:18 +0000 (16:27 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 8 Jan 2016 21:27:18 +0000 (16:27 -0500)
js/app.js
js/custom/upcp.js

index 24caeb8..be0786e 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -148,10 +148,15 @@ $(document).ready(function () {
             });
         }  
     } 
-
-    $("document").ready(function() {
-        $(".hitarea").trigger('click');
-        $(".hitarea").click(function(){ 
-        });
+    $.when(
+        $(".hitarea").triggerHandler('click')
+    ).done(function() {
+        $("expandable-hitarea").triggerHandler("click");
     });
+    
+//    $("document").ready(function() {
+//        $(".hitarea").trigger('click');
+//        $(".hitarea").click(function(){ 
+//        });
+//    });
 });
\ No newline at end of file
index 6d0d6a3..d050d9f 100644 (file)
@@ -128,10 +128,15 @@ $(document).ready(function () {
             });
         }  
     } 
-
-    $("document").ready(function() {
-        $(".hitarea").trigger('click');
-        $(".hitarea").click(function(){ 
-        });
+    $.when(
+        $(".hitarea").triggerHandler('click')
+    ).done(function() {
+        $("expandable-hitarea").triggerHandler("click");
     });
+    
+//    $("document").ready(function() {
+//        $(".hitarea").trigger('click');
+//        $(".hitarea").click(function(){ 
+//        });
+//    });
 });
\ No newline at end of file