Update of /var/cvs/applications/editwizard/templates/javascript In directory james.mmbase.org:/tmp/cvs-serv12679/javascript
Modified Files: editwizard.jsp Log Message: Mark: bugfix if new 'main' feature not used See also: http://cvs.mmbase.org/viewcvs/applications/editwizard/templates/javascript Index: editwizard.jsp =================================================================== RCS file: /var/cvs/applications/editwizard/templates/javascript/editwizard.jsp,v retrieving revision 1.76 retrieving revision 1.77 diff -u -b -r1.76 -r1.77 --- editwizard.jsp 27 Feb 2009 12:11:30 -0000 1.76 +++ editwizard.jsp 3 Mar 2009 11:35:30 -0000 1.77 @@ -5,7 +5,7 @@ * and validation (in validator.js) * * @since MMBase-1.6 - * @version $Id: editwizard.jsp,v 1.76 2009/02/27 12:11:30 pierre Exp $ + * @version $Id: editwizard.jsp,v 1.77 2009/03/03 11:35:30 michiel Exp $ * @author Kars Veling * @author Pierre van Rooden * @author Nico Klasens @@ -167,13 +167,14 @@ // however, if the first field is a "<buildername>.number" field, that buildername is used var lastobject = main; - if (lastobject == "" || lastobject == null) { + if (lastobject == null) lastobject = ""; + if (lastobject == "") { var tmp = nodepath.split(","); - if (tmp.length>1) { - lastobject=tmp[tmp.length-1]; - tmp=fields.split(","); - if (tmp.length>1 && tmp[0].indexOf(".number") != -1) { - lastobject=tmp[0].split(".")[0]; + if (tmp.length > 1) { + lastobject = tmp[tmp.length-1]; + tmp = fields.split(","); + if (tmp.length > 1 && tmp[0].indexOf(".number") != -1) { + lastobject = tmp[0].split(".")[0]; } } } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs