summaryrefslogtreecommitdiff
path: root/app/views/keys/create.js.haml
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-09 00:36:38 +0300
committergitlabhq <m@gitlabhq.com>2011-10-09 00:36:38 +0300
commit9ba1224867665844b117fa037e1465bb706b3685 (patch)
tree52fbfc1cdb55df21843965479c97be0c91121a9a /app/views/keys/create.js.haml
parent93efff945215a4407afcaf0cba15ac601b56df0d (diff)
downloadgitlab-ce-9ba1224867665844b117fa037e1465bb706b3685.tar.gz
init commit
Diffstat (limited to 'app/views/keys/create.js.haml')
-rw-r--r--app/views/keys/create.js.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/keys/create.js.haml b/app/views/keys/create.js.haml
new file mode 100644
index 00000000000..7b92be77180
--- /dev/null
+++ b/app/views/keys/create.js.haml
@@ -0,0 +1,8 @@
+- if @key.valid?
+ :plain
+ $("#new_key_dialog").dialog("close");
+ $("#keys-table").append("#{escape_javascript(render(:partial => 'show', :locals => {:key => @key} ))}");
+- else
+ :plain
+ $("#new_key_dialog").empty();
+ $("#new_key_dialog").append("#{escape_javascript(render('form'))}");