Author: vmolotkov
Date: 2008-08-14 12:11:51 -0400 (Thu, 14 Aug 2008)
New Revision: 10102
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
https://jira.jboss.org/jira/browse/RF-2826
https://jira.jboss.org/jira/browse/RF-4147
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-14
15:58:05 UTC (rev 10101)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-08-14
16:11:51 UTC (rev 10102)
@@ -61,12 +61,7 @@
if (this.bar.cancel) {
this.bar.cancel.observe("mousedown",
function(e){this.cancelHandler(e)}.bindAsEventListener(this));
}
-
- //this.bar.bar.observe("mousedown",
function(e){this.barMouseDownHandler(e);}.bindAsEventListener(this));
}
- //this.tabber.observe("focus",
function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
- //this.tabber.observe("blur",
function(e){this.tmpValueBlurHandler(e);}.bindAsEventListener(this));
-
},
initEvents : function() {
@@ -130,7 +125,6 @@
tmpValueBlurHandler : function() {
if (this.clickOnBar || this.byTab) {
this.clickOnBar = false;
- //this.byTab = false;
return;
}
@@ -159,10 +153,6 @@
}
},
- /*barMouseDownHandler : function(e) {
- this.clickOnBar = true;
- },*/
-
okHandler : function(e) {
this.save();
Event.stop(e);
@@ -176,9 +166,6 @@
/**
* STATE'S API
*/
- /*endViewState : function() {
- this.deleteViewArtifacts();
- },*/
endEditableState : function() {
this.inplaceInput.style.position = "";
@@ -186,11 +173,7 @@
this.bar.hide();
}
- //Event.stopObserving(this.tabber, "focus",
this.switchingStatesHandler.bindAsEventListener(this));
- //this.tabber.observe("focus",
this.switchingStatesHandler.bindAsEventListener(this));
-
this.tempValueKeeper.style.clip = 'rect(0px,0px,10px,10px)';
- //this.tempValueKeeper.hide();
},
/*endChangedState : function() {
@@ -206,9 +189,6 @@
var textWidth= this.inplaceInput.offsetWidth;
var inputSize = this.setInputWidth(textWidth);
- //this.tabber.hide();
-
- //this.tempValueKeeper.show();
this.tempValueKeeper.style.clip = 'rect(auto,auto,auto,auto)';
this.inplaceInput.className = this.classes.COMPONENT.EDITABLE;
@@ -237,7 +217,6 @@
this.changeState(Richfaces.InplaceInput.STATES[2]);
- //this.createNewText(this.valueKeeper.value);1
this.createNewText(this.currentText);
this.inplaceInput.className = this.classes.COMPONENT.CHANGED.NORMAL;
},
@@ -402,15 +381,9 @@
initDimensions : function() {
//TODO: Crap code magic numbers - I propose 325 and 675
- /*this.bar.style.visibility = "hidden";
- this.bar.show();*/
-
- //var dim = this.bsPanel.getDimensions();
this.BAR_WIDTH = 26;
this.BAR_HEIGHT = 12;
- /*this.bar.hide();
- this.bar.style.visibility = "visible";*/
},
show : function(inpWidth, inpHeight) {