summaryrefslogtreecommitdiff
path: root/views/js_link.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/js_link.haml')
-rw-r--r--views/js_link.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/js_link.haml b/views/js_link.haml
new file mode 100644
index 0000000..7d8cdce
--- /dev/null
+++ b/views/js_link.haml
@@ -0,0 +1,5 @@
+%a{:href => "#{destination}", :id => "js_link#{@link_id}"} #{name}
+:javascript
+ $("a#js_link#{@link_id}").click(function () {
+ $("#{destination}").#{method}();
+ });