From d482f096fe50ea709b7c528e939ad30d39a55409 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Mon, 15 Jun 2015 13:02:33 +0530 Subject: [PATCH] Use jQuery selectors here Signed-off-by: Madhura Jayaratne --- js/pmd/history.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/pmd/history.js b/js/pmd/history.js index ca6d70023a..8570d7d29e 100644 --- a/js/pmd/history.js +++ b/js/pmd/history.js @@ -755,7 +755,6 @@ function build_query(formtitle, fadin) if (query_groupby() !== "") { q_select += "\nGROUP BY " + query_groupby(); } if (query_having() !== "") { q_select += "\nHAVING " + query_having(); } if (query_orderby() !== "") { q_select += "\nORDER BY " + query_orderby(); } - var box = document.getElementById('box'); /** * @var button_options Object containing options @@ -774,7 +773,7 @@ function build_query(formtitle, fadin) $('#vqb_form').submit(); }; - var $ajaxDialog = $(box).dialog({ + var $ajaxDialog = $('#box').dialog({ width: 500, buttons: button_options, modal: true,