gitlabhq/app/views/issues/create.js.haml
Dmitriy Zaporozhets 67b9fa51dc fixed tests
2011-11-07 22:31:51 +02:00

11 lines
441 B
Plaintext

- if @issue.valid?
:plain
$("#new_issue_dialog").dialog("close");
$("#issues-table").prepend("#{escape_javascript(render(:partial => 'show', :locals => {:issue => @issue} ))}");
$.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});