Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-09 01:36:38 +0400
committergitlabhq <m@gitlabhq.com>2011-10-09 01:36:38 +0400
commit9ba1224867665844b117fa037e1465bb706b3685 (patch)
tree52fbfc1cdb55df21843965479c97be0c91121a9a /app/views/projects/update.js.haml
parent93efff945215a4407afcaf0cba15ac601b56df0d (diff)
init commit
Diffstat (limited to 'app/views/projects/update.js.haml')
-rw-r--r--app/views/projects/update.js.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/projects/update.js.haml b/app/views/projects/update.js.haml
new file mode 100644
index 00000000000..0188f083735
--- /dev/null
+++ b/app/views/projects/update.js.haml
@@ -0,0 +1,6 @@
+- if @project.valid?
+ :plain
+ location.href = "#{project_path(@project, :notice => 'Project was successfully updated.')}";
+- else
+ :plain
+ $(".edit_project").replaceWith("#{escape_javascript(render('form'))}");