* finish task #1011.

This commit is contained in:
zhujinyong
2012-12-24 00:50:43 +00:00
parent 934a7ba293
commit 229d651476
3 changed files with 27 additions and 2 deletions

View File

@@ -38,10 +38,35 @@ function setPreview()
$('#preview').removeClass('hidden');
$('#preview').attr('href', storyLink);
}
setAfter();
}
/**
* Set after locate.
*
* @access public
* @return void
*/
function setAfter()
{
if($("#story").select().val() == '')
{
if($('input[value="continueAdding"]').attr('checked') == true)
{
$('input[value="toTaskList"]').attr('checked', true);
}
$('input[value="continueAdding"]').attr('disabled', 'disabled');
}
else
{
$('input[value="continueAdding"]').attr('disabled', false);
}
}
$(document).ready(function()
{
setPreview();
$("#story").chosen({no_results_text: noResultsMatch});
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
setAfter();
});

View File

@@ -105,7 +105,7 @@ $lang->task->reasonList['done'] = 'Done';
$lang->task->reasonList['cancel'] = 'Canceled';
$lang->task->afterChoices['continueAdding'] = 'Continue to add task for this story. ';
$lang->task->afterChoices['toTastList'] = 'To task list. ';
$lang->task->afterChoices['toTaskList'] = 'To task list. ';
$lang->task->afterChoices['toStoryList'] = 'To story list. ';
$lang->task->buttonEdit = 'Edit';

View File

@@ -105,7 +105,7 @@ $lang->task->reasonList['done'] = '已完成';
$lang->task->reasonList['cancel'] = '已取消';
$lang->task->afterChoices['continueAdding'] = '继续为该需求添加任务';
$lang->task->afterChoices['toTastList'] = '返回任务列表';
$lang->task->afterChoices['toTaskList'] = '返回任务列表';
$lang->task->afterChoices['toStoryList'] = '返回需求列表';
$lang->task->buttonEdit = '编辑';