Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/javascript
In directory
james.mmbase.org:/tmp/cvs-serv8936/cmsc/edit-webapp/src/webapp/editors/editwizards_new/javascript
Modified Files:
override.js
Log Message:
CMSC-1081 After starting an edit wizard in create mode which has required
field, the statusbar message will remain after cancel
Override updatePrompt
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/javascript
See also: http://www.mmbase.org/jira/browse/CMSC-1081
Index: override.js
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/javascript/override.js,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- override.js 17 Mar 2009 06:48:08 -0000 1.11
+++ override.js 27 Apr 2009 15:54:45 -0000 1.12
@@ -97,6 +97,22 @@
}
}
+function updatePrompt(el, err, silent) {
+ var prompt = document.getElementById("prompt_" + el.name);
+ if (prompt && !silent) {
+ var orgprompt = prompt.getAttribute("prompt");
+ var description = prompt.getAttribute("description");
+ if (err.length > 0) {
+ prompt.title = description+"
\n\n"+getToolTipValue(form,"message_thisnotvalid",
+ "This field is not valid")+":\n "+err;
+ prompt.className = "notvalid";
+ } else {
+ prompt.className = "valid";
+ prompt.title = description;
+ }
+ }
+}
+
function updateButtons(allvalid) {
var savebut = document.getElementById("bottombutton-save");
var saveonlybut = document.getElementById("bottombutton-saveonly");
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs