aboutsummaryrefslogtreecommitdiffstats
path: root/template-common/inputfix.htc
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
committerplegall <plg@piwigo.org>2010-03-13 00:00:52 +0000
commit14778ce673277f2df41f963aa70df1cbed427294 (patch)
tree8c723d4d9827876dbf19d2bd581405fc50910860 /template-common/inputfix.htc
parentc396f08708d431c6f7e8656eaca4fd8e440fdd39 (diff)
feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It supports multiple level inheritance. git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template-common/inputfix.htc')
-rw-r--r--template-common/inputfix.htc42
1 files changed, 0 insertions, 42 deletions
diff --git a/template-common/inputfix.htc b/template-common/inputfix.htc
deleted file mode 100644
index e99d2b2c7..000000000
--- a/template-common/inputfix.htc
+++ /dev/null
@@ -1,42 +0,0 @@
-<public:attach event="oncontentready" onevent="fixElements()" />
-
-<script langage=javascript>
-
-function setFocusStyle()
-{
- window.event.srcElement.className += ' focus';
-}
-
-function setBlurStyle()
-{
- window.event.srcElement.className = window.event.srcElement.className.replace( ' focus', ' nofocus');
-}
-
-function setClassFromType()
-{
- this.className += ' ' + this.type;
-}
-
-function fixElements()
-{
- for ( var i=0; i<this.elements.length; i++ )
- {
- var elem=this.elements[i];
- switch ( elem.tagName )
- {
- case "INPUT":
- elem.className += ' ' + elem.type;
- if ( (elem.type != "radio") && (elem.type != "checkbox") )
- { /* setting focus/nofocus on those is a mess to handle in css */
- elem.attachEvent( 'onfocus', setFocusStyle );
- elem.attachEvent( 'onblur', setBlurStyle );
- }
- break;
- case "SELECT":
- case "TEXTAREA":
- elem.attachEvent( 'onfocus', setFocusStyle );
- elem.attachEvent( 'onblur', setBlurStyle );
- }
- }
-}
-</script>