NewMonarch (owner)

Revisions

gist: 8912 Download_button fork
public
Public Clone URL: git://gist.github.com/8912.git
Embed All Files: show embed
RHTML #
1
2
3
4
5
6
  <div class="product_row add_new_product" id="new_design">
    <a href="#" onclick="try {
new Insertion.Before(&quot;new_design&quot;, &quot;\n&lt;div class=\&quot;product_row add_new_product\&quot; id=\&quot;new_product\&quot;&gt;\n &lt;a href=\&quot;#\&quot; onclick=\&quot;try {\nnew Insertion.Before(&quot;new_product&quot;, &quot;&lt;p&gt;This works.&lt;/p&gt;&quot;);\n} catch (e) { alert('RJS error:\\n\\n' + e.toString()); alert('new Insertion.Before(\\&quot;new_product\\&quot;, \\&quot;&lt;p&gt;This works.&lt;/p&gt;\\&quot;);'); throw e }; return false;\&quot;&gt;Add another product&lt;/a&gt;&lt;/div&gt;&quot;);
} catch (e) { alert('RJS error:\n\n' + e.toString()); alert('new Insertion.Before(\&quot;new_design\&quot;, \&quot;\\n&lt;div class=\\\&quot;product_row add_new_product\\\&quot; id=\\\&quot;new_product\\\&quot;&gt;\\n &lt;a href=\\\&quot;#\\\&quot; onclick=\\\&quot;try {\\nnew Insertion.Before(&quot;new_product&quot;, &quot;&lt;p&gt;This works.&lt;/p&gt;&quot;);\\n} catch (e) { alert(\'RJS error:\\\\n\\\\n\' + e.toString()); alert(\'new Insertion.Before(\\\\&quot;new_product\\\\&quot;, \\\\&quot;&lt;p&gt;This works.&lt;/p&gt;\\\\&quot;);\'); throw e }; return false;\\\&quot;&gt;Add another product&lt;/a&gt;&lt;/div&gt;\&quot;);'); throw e }; return false;">Add another design to this order</a> </div>