summaryrefslogtreecommitdiff
path: root/app/views/issues/update.js.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/issues/update.js.haml')
-rw-r--r--app/views/issues/update.js.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/issues/update.js.haml b/app/views/issues/update.js.haml
new file mode 100644
index 00000000000..c365c3f5d55
--- /dev/null
+++ b/app/views/issues/update.js.haml
@@ -0,0 +1,14 @@
+- if params[:status_only]
+ - if @issue.valid?
+ :plain
+ $("##{dom_id(@issue)}").fadeOut();
+- else
+ - if @issue.valid?
+ :plain
+ $("#edit_issue_dialog").dialog("close");
+ $.ajax({type: "GET", url: location.href, dataType: "script"});
+ - else
+ :plain
+ $("#edit_issue_dialog").empty();
+ $("#edit_issue_dialog").append("#{escape_javascript(render('form'))}");
+ $('select#issue_assignee_id').selectmenu({width:300});