summaryrefslogtreecommitdiffstats
path: root/pyload/webui/themes/Default/lib/MooTools/MooDialog/MooDialog.IFrame.js
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/webui/themes/Default/lib/MooTools/MooDialog/MooDialog.IFrame.js')
-rw-r--r--pyload/webui/themes/Default/lib/MooTools/MooDialog/MooDialog.IFrame.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/pyload/webui/themes/Default/lib/MooTools/MooDialog/MooDialog.IFrame.js b/pyload/webui/themes/Default/lib/MooTools/MooDialog/MooDialog.IFrame.js
new file mode 100644
index 000000000..029bf1f09
--- /dev/null
+++ b/pyload/webui/themes/Default/lib/MooTools/MooDialog/MooDialog.IFrame.js
@@ -0,0 +1,33 @@
+/*
+---
+name: MooDialog.IFrame
+description: Opens an IFrame in a MooDialog
+authors: Arian Stolwijk
+license: MIT-style license
+requires: MooDialog
+provides: MooDialog.IFrame
+...
+*/
+
+
+MooDialog.IFrame = new Class({
+
+ Extends: MooDialog,
+
+ options: {
+ useScrollBar: true
+ },
+
+ initialize: function(url, options){
+ this.parent(options);
+
+ this.setContent(
+ new Element('iframe', {
+ src: url,
+ frameborder: 0,
+ scrolling: this.options.useScrollBar ? 'auto' : 'no'
+ })
+ );
+ if (this.options.autoOpen) this.open();
+ }
+});