You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/02/26 21:13:35 UTC
svn commit: r381155 -
/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js
Author: werpu
Date: Sun Feb 26 12:13:35 2006
New Revision: 381155
URL: http://svn.apache.org/viewcvs?rev=381155&view=rev
Log:
fixed a bug, the hiddenfield should be reset at the confirm ok
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js?rev=381155&r1=381154&r2=381155&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/statechangednotifier/resource/stateChangedNotifier.js Sun Feb 26 12:13:35 2006
@@ -132,7 +132,10 @@
var hiddenField = dojo.byId(this.hiddenFieldId);
if (hiddenField.value == "true") {
//if (!confirm(message)) return false;
- return confirm(this.message);
+ var confirmit = confirm(this.message);
+ if(confirmit )
+ hiddenField.value == "false";
+ return confirmit;
}
return true;
};