From 0bd075f4dfd55c01ff717ecfa8cc205a2338a892 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 8 Jan 2016 15:51:13 -0500 Subject: [PATCH] testing jquery function to expand tree view --- js/app.js | 17 ++++++++--------- js/custom/upcp.js | 17 ++++++++--------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/js/app.js b/js/app.js index c8d9df5..55a6c4d 100644 --- 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 diff --git a/js/custom/upcp.js b/js/custom/upcp.js index 44b4fd7..594699a 100644 --- a/js/custom/upcp.js +++ b/js/custom/upcp.js @@ -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 -- 2.17.1