Guest User

Untitled

a guest
Apr 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. <fieldset class="input" id="property-fieldset-1">
  2.  
  3. <input type="hidden" id="property_1_property_type_id" name="properties[1][property_type_id]" value
  4.  
  5. ="1" />
  6.  
  7. Title: <input type="text" id="property_1_title" name="properties[1][title]" />
  8.  
  9. Abbreviation: <input type="text" id="property_1_abbreviation" name="properties[1][abbreviation]" /
  10.  
  11. >
  12.  
  13. Value: <input type="text" id="property_1_value" name="properties[1][value]" />
  14.  
  15. <a href="#" title="" onclick="$('property-fieldset-1').remove(); return false;">Remove property</a
  16.  
  17. >
  18.  
  19. </fieldset>
  20.  
  21. <script type="text/javascript">
  22.  
  23. //<![CDATA[
  24.  
  25. $("add-property-link-0").replace("<div id=\"add-property-link-1\">\n <a href=\"#\" onclick=\"addProperty
  26.  
  27. ();return false;\">Add property<\/a>\n <script type=\"text/javascript\">\n //<![CDATA[\n function
  28.  
  29. addProperty() {\n var url = \"/properties/new?idx=2\";\n var element = $(\"property-fieldset-1
  30.  
  31. \");\n\n new Ajax.Updater(element, url, {\n method: \"get\",\n evalScripts:
  32.  
  33. true,\n insertion: Insertion.After\n });\n }\n //]]>\n <\/script>\n<\/div>
  34.  
  35. \n");
  36.  
  37. //]]>
  38.  
  39. </script>
Add Comment
Please, Sign In to add comment