summaryrefslogtreecommitdiff
path: root/template/default/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'template/default/library.js')
-rw-r--r--template/default/library.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/template/default/library.js b/template/default/library.js
new file mode 100644
index 0000000..2377bb3
--- /dev/null
+++ b/template/default/library.js
@@ -0,0 +1,34 @@
+//
+// this is part of VDR Admin
+//
+function open_help(url) {
+ window.open(url, "_blank", "width=500, height=460, resizable=yes, scrollbars=yes, status=no, toolbar=no");
+}
+
+function del(message, suffix) {
+ check=confirm(message);
+ if(check) window.location.href=suffix;
+}
+
+function change(message, suffix) {
+ check=confirm(message);
+ if(check) window.location.href=suffix;
+}
+
+function mdel(message) {
+ check=confirm(message);
+ if(check) document.FormName.submit();
+}
+
+function callurl( url ) {
+ image = new Image();
+ image.src = url;
+}
+
+function popup(URL) {
+ window.open(URL, '_new', 'width=450, height=250, scrollbars=auto, resizable=yes');
+}
+
+function toolbar(URL) {
+ window.open(URL, '_new', 'width=200, height=50');
+}