summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/prado/element.js
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/prado/element.js')
-rw-r--r--framework/Web/Javascripts/prado/element.js68
1 files changed, 6 insertions, 62 deletions
diff --git a/framework/Web/Javascripts/prado/element.js b/framework/Web/Javascripts/prado/element.js
index 163a7d6e..fc84e4b1 100644
--- a/framework/Web/Javascripts/prado/element.js
+++ b/framework/Web/Javascripts/prado/element.js
@@ -63,10 +63,11 @@ Prado.Element =
el.options[el.options.length] = new Option(options[i][0],options[i][1]);
}
},
-/**
- * A delayed focus on a particular element
- * @param {element} element to apply focus()
- */
+
+ /**
+ * A delayed focus on a particular element
+ * @param {element} element to apply focus()
+ */
focus : function(element)
{
var obj = $(element);
@@ -172,61 +173,4 @@ Prado.Element.Selection =
el.checked = !el.checked;
});
}
-};
-
-
-/**
- * Alias some of the prototype functions.
- * Insert a html fragment relative to an element.
- */
-Object.extend(Prado.Element,
-{
- /**
- *
- */
- Insert :
- {
- /**
- * Insert directly after the element.
- */
- After : function(element, innerHTML)
- {
- new Insertion.After(element, innerHTML);
- },
-
- /**
- * Insert directly after the element
- */
- Before : function(element, innerHTML)
- {
- new Insertion.Before(element. innerHTML);
- },
-
- /**
- * Insert below the element container.
- */
- Below : function(element, innerHTML)
- {
- new Insertion.Bottom(element, innerHTML);
- },
-
- /**
- * Insert above the element container.
- */
- Above : function(element, innerHTML)
- {
- new Insertion.Top(element, innerHTML);
- }
- },
- CssClass :
- {
- /**
- * Set the css class name of an element.
- */
- set : function(element, cssClass)
- {
- element = new Element.ClassNames(element);
- element.set(cssClass);
- }
- }
-}); \ No newline at end of file
+}; \ No newline at end of file