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