Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <fieldset class="input" id="property-fieldset-1">
- <input type="hidden" id="property_1_property_type_id" name="properties[1][property_type_id]" value
- ="1" />
- Title: <input type="text" id="property_1_title" name="properties[1][title]" />
- Abbreviation: <input type="text" id="property_1_abbreviation" name="properties[1][abbreviation]" /
- >
- Value: <input type="text" id="property_1_value" name="properties[1][value]" />
- <a href="#" title="" onclick="$('property-fieldset-1').remove(); return false;">Remove property</a
- >
- </fieldset>
- <script type="text/javascript">
- //<![CDATA[
- $("add-property-link-0").replace("<div id=\"add-property-link-1\">\n <a href=\"#\" onclick=\"addProperty
- ();return false;\">Add property<\/a>\n <script type=\"text/javascript\">\n //<![CDATA[\n function
- addProperty() {\n var url = \"/properties/new?idx=2\";\n var element = $(\"property-fieldset-1
- \");\n\n new Ajax.Updater(element, url, {\n method: \"get\",\n evalScripts:
- true,\n insertion: Insertion.After\n });\n }\n //]]>\n <\/script>\n<\/div>
- \n");
- //]]>
- </script>
Add Comment
Please, Sign In to add comment