Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildRendering: function(){
- 258 this.inherited(arguments);
- 259
- 260 // Create a hidden <input> node with the serialized value used for submit
- 261 // (as opposed to the displayed value)
- 262 var textbox = this.textbox;
- 263 var valueNode = (this.valueNode = dojo.doc.createElement("input"));
- 264 valueNode.setAttribute("type", textbox.type);
- 265 dojo.style(valueNode, "display", "none");
- 266 this.valueNode.name = this.textbox.name;
- 267 dojo.place(valueNode, textbox, "after");
- 268
- 269 // try to give the displayed node a different name, or ideally
- 270 // remove that attribute altogether
- 271 this.textbox.name = this.textbox.name + "_displayed_";
- 272 this.textbox.removeAttribute("name");
- 273 },
Add Comment
Please, Sign In to add comment