gitlabhq/app/views/issues/create.js.haml

11 lines
441 B
Plaintext
Raw Normal View History

2011-10-08 23:36:38 +02:00
- if @issue.valid?
:plain
$("#new_issue_dialog").dialog("close");
2011-11-07 21:31:51 +01:00
$("#issues-table").prepend("#{escape_javascript(render(:partial => 'show', :locals => {:issue => @issue} ))}");
2011-10-08 23:36:38 +02:00
$.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});