diff options
author | Andrew Dolgov <[email protected]> | 2012-12-28 15:42:02 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-28 15:42:02 +0400 |
commit | b8cb4d08b3b06bc22541d3366016403207742503 (patch) | |
tree | 31f10e7db4ab05fb0bb71bbeeb80a2e203bcd59d /js/functions.js | |
parent | 744a29309d0aafacd6e2d9332f3d841ecaa24555 (diff) |
help cleanup, use dijit dialog
Diffstat (limited to 'js/functions.js')
-rw-r--r-- | js/functions.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/functions.js b/js/functions.js index 8776405be..ec533faae 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1874,3 +1874,25 @@ function get_timestamp() { var date = new Date(); return Math.round(date.getTime() / 1000); } + +function helpDialog(topic) { + try { + var query = "backend.php?op=backend&method=help&topic=" + param_escape(topic); + + if (dijit.byId("helpDlg")) + dijit.byId("helpDlg").destroyRecursive(); + + dialog = new dijit.Dialog({ + id: "helpDlg", + title: __("Help"), + style: "width: 600px", + href: query, + }); + + dialog.show(); + + } catch (e) { + exception_error("helpDialog", e); + } +} + |