Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var FormObject = function(form_id)
- {
- this.attr_base = "";
- var self = {
- form_id: form_id,
- attr_name: this.attr_base + "[name]",
- attr_form_name: this.attr_base + "[form_identifier]",
- to_html: function() {
- return "<td>" +
- "<input name='" + this.attr_name + "' type='text'>" +
- "<input name='" + this.attr_form_name + "' type='hidden' value='" + this.form_id + "'>'" +
- "</td>";
- }
- };
- return self;
- };
- /*
- I want to create a OptionCategory object that "inherits" the above and overrides this.attr_base
- */
Add Comment
Please, Sign In to add comment