Guest User

Untitled

a guest
Jun 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. buildRendering: function(){
  2. 258 this.inherited(arguments);
  3. 259
  4. 260 // Create a hidden <input> node with the serialized value used for submit
  5. 261 // (as opposed to the displayed value)
  6. 262 var textbox = this.textbox;
  7. 263 var valueNode = (this.valueNode = dojo.doc.createElement("input"));
  8. 264 valueNode.setAttribute("type", textbox.type);
  9. 265 dojo.style(valueNode, "display", "none");
  10. 266 this.valueNode.name = this.textbox.name;
  11. 267 dojo.place(valueNode, textbox, "after");
  12. 268
  13. 269 // try to give the displayed node a different name, or ideally
  14. 270 // remove that attribute altogether
  15. 271 this.textbox.name = this.textbox.name + "_displayed_";
  16. 272 this.textbox.removeAttribute("name");
  17. 273 },
Add Comment
Please, Sign In to add comment