gitlabhq/app/assets/javascripts/issues.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

function switchToNewIssue(form){
2012-01-28 00:49:14 +01:00
$(".issues_content").hide("fade", { direction: "left" }, 150, function(){
$(".issues_content").after(form);
$('select#issue_assignee_id').chosen();
2012-04-08 23:28:58 +02:00
$('select#issue_milestone_id').chosen();
2012-01-28 00:49:14 +01:00
$("#new_issue_dialog").show("fade", { direction: "right" }, 150);
2012-01-25 08:13:08 +01:00
$('.top-tabs .add_new').hide();
});
}
function switchToEditIssue(form){
2012-01-28 00:49:14 +01:00
$(".issues_content").hide("fade", { direction: "left" }, 150, function(){
$(".issues_content").after(form);
$('select#issue_assignee_id').chosen();
2012-04-08 23:28:58 +02:00
$('select#issue_milestone_id').chosen();
2012-01-28 00:49:14 +01:00
$("#edit_issue_dialog").show("fade", { direction: "right" }, 150);
2012-01-27 07:57:55 +01:00
$('.add_new').hide();
});
}
function switchFromNewIssue(){
backToIssues();
}
function switchFromEditIssue(){
backToIssues();
}
function backToIssues(){
2012-01-28 00:49:14 +01:00
$("#edit_issue_dialog, #new_issue_dialog").hide("fade", { direction: "right" }, 150, function(){
$(".issues_content").show("fade", { direction: "left" }, 150, function() {
$("#edit_issue_dialog").remove();
$("#new_issue_dialog").remove();
2012-01-27 07:57:55 +01:00
$('.add_new').show();
});
});
}