2011-11-25 22:40:12 +01:00
|
|
|
function switchToNewIssue(form){
|
2012-01-28 00:49:14 +01:00
|
|
|
$(".issues_content").hide("fade", { direction: "left" }, 150, function(){
|
|
|
|
$(".issues_content").after(form);
|
2011-11-25 22:40:12 +01:00
|
|
|
$('select#issue_assignee_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();
|
2011-11-25 22:40:12 +01:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function switchToEditIssue(form){
|
2012-01-28 00:49:14 +01:00
|
|
|
$(".issues_content").hide("fade", { direction: "left" }, 150, function(){
|
|
|
|
$(".issues_content").after(form);
|
2011-11-25 22:40:12 +01:00
|
|
|
$('select#issue_assignee_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();
|
2011-11-25 22:40:12 +01:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
2011-11-25 22:40:12 +01:00
|
|
|
$("#edit_issue_dialog").remove();
|
|
|
|
$("#new_issue_dialog").remove();
|
2012-01-27 07:57:55 +01:00
|
|
|
$('.add_new').show();
|
2011-11-25 22:40:12 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|