Author: abelevich
Date: 2010-09-13 12:53:22 -0400 (Mon, 13 Sep 2010)
New Revision: 19173
Modified:
branches/RF-8992/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js
Log:
remove duplicate initialization from the constructor
Modified:
branches/RF-8992/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js
===================================================================
---
branches/RF-8992/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js 2010-09-13
16:49:49 UTC (rev 19172)
+++
branches/RF-8992/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/inplaceSelect.js 2010-09-13
16:53:22 UTC (rev 19173)
@@ -5,12 +5,6 @@
rf.ui.InplaceSelect = function(id, options) {
$super.constructor.call(this, id, options)
this.select = new rf.ui.Select(options.listCord, this, options);
- this.input = $(document.getElementById(options.input));
- this.label = $(document.getElementById(options.label));
-
- var label = this.label.text();
- var inputLabel = this.input.val();
- this.initialValue = (label == inputLabel) ? label : "";
}
rf.ui.InplaceInput.extend(rf.ui.InplaceSelect);
@@ -55,9 +49,8 @@
__blurHandler: function(e) {
return false;
- },
+ }
-
}
})());