From: Anthony Talarico Date: Fri, 8 Jan 2016 21:27:18 +0000 (-0500) Subject: trying deffered method for child object click X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3fff0615db85c72672c520ba7b1dcbd3988efffd;p=WP-Themes%2Fmichsci.git trying deffered method for child object click --- diff --git a/js/app.js b/js/app.js index 24caeb8..be0786e 100644 --- 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 diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 6d0d6a3..d050d9f 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -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