Guest User

Untitled

a guest
Sep 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. var FormObject = function(form_id)
  2. {
  3. this.attr_base = "";
  4.  
  5.  
  6. var self = {
  7. form_id: form_id,
  8. attr_name: this.attr_base + "[name]",
  9. attr_form_name: this.attr_base + "[form_identifier]",
  10. to_html: function() {
  11. return "<td>" +
  12. "<input name='" + this.attr_name + "' type='text'>" +
  13. "<input name='" + this.attr_form_name + "' type='hidden' value='" + this.form_id + "'>'" +
  14. "</td>";
  15. }
  16. };
  17.  
  18. return self;
  19. };
  20.  
  21. /*
  22. I want to create a OptionCategory object that "inherits" the above and overrides this.attr_base
  23. */
Add Comment
Please, Sign In to add comment