summaryrefslogtreecommitdiff
path: root/app/views/issues/create.js.haml
blob: 3713a8aff41721a4578261d3ca6fbc762aaf3144 (plain)
1
2
3
4
5
6
7
8
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});