diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-09 01:36:38 +0400 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-09 01:36:38 +0400 |
commit | 9ba1224867665844b117fa037e1465bb706b3685 (patch) | |
tree | 52fbfc1cdb55df21843965479c97be0c91121a9a /app/views/projects/update.js.haml | |
parent | 93efff945215a4407afcaf0cba15ac601b56df0d (diff) |
init commit
Diffstat (limited to 'app/views/projects/update.js.haml')
-rw-r--r-- | app/views/projects/update.js.haml | 6 |
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'))}"); |