From 3fff0615db85c72672c520ba7b1dcbd3988efffd Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 8 Jan 2016 16:27:18 -0500 Subject: [PATCH] trying deffered method for child object click --- js/app.js | 15 ++++++++++----- js/custom/upcp.js | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) 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 -- 2.17.1