* adjust the placeholder of chosen.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
$(function()
|
||||
{
|
||||
$(".chosenBox select").chosen({no_results_text: noResultsMatch});
|
||||
$(".chzn-container-multi .chzn-choices li.search-field input").attr('value', chooseBuilds);
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -32,6 +31,5 @@ function loadProjectBuilds(productID, projectID, index)
|
||||
$('#buildBox' + index + ' select').addClass('select-1');
|
||||
$('#buildBox' + index + ' select').attr('id', 'openedBuilds[' + index + '][]');
|
||||
$('#buildBox' + index + ' select').chosen({no_results_text: ''});
|
||||
$('#buildBox' + index + ' .chzn-container-multi .chzn-choices li.search-field input').attr('value', chooseBuilds);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ $(function()
|
||||
$("#story").chosen({no_results_text:noResultsMatch});
|
||||
$("#task").chosen({no_results_text:noResultsMatch});
|
||||
$("#mailto").chosen({no_results_text:noResultsMatch});
|
||||
$(".chzn-container-multi .chzn-choices li.search-field input").attr('value', mailto);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -363,6 +363,3 @@ $lang->bug->action->unlinkedfromplan = array('main' => '$date, 由 <strong>$acto
|
||||
|
||||
$lang->bug->placeholder = new stdclass();
|
||||
$lang->bug->placeholder->chooseBuilds = 'Choose builds...';
|
||||
|
||||
$lang->bug->chosen = new stdClass();
|
||||
$lang->bug->chosen->mailto = 'Select users to mail...';
|
||||
|
||||
@@ -363,6 +363,3 @@ $lang->bug->action->unlinkedfromplan = array('main' => '$date, 由 <strong>$acto
|
||||
|
||||
$lang->bug->placeholder = new stdclass();
|
||||
$lang->bug->placeholder->chooseBuilds = '选择相关版本...';
|
||||
|
||||
$lang->bug->chosen = new stdClass();
|
||||
$lang->bug->chosen->mailto = '输入用户名自动选择...';
|
||||
|
||||
@@ -16,7 +16,6 @@ include '../../common/view/kindeditor.html.php';
|
||||
include '../../common/view/chosen.html.php';
|
||||
js::set('holders', $lang->bug->placeholder);
|
||||
js::set('page', 'assignedto');
|
||||
js::set('mailto', $lang->bug->chosen->mailto);
|
||||
?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php js::set('chooseBuilds', $lang->bug->placeholder->chooseBuilds);?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1 fixed'>
|
||||
<caption><?php echo $lang->bug->project . $lang->colon . $lang->bug->batchCreate;?></caption>
|
||||
@@ -34,7 +33,7 @@
|
||||
<td><?php echo $i+1;?></td>
|
||||
<td class='a-left' style='overflow:visible'><?php echo html::select("modules[$i]", $moduleOptionMenu, $moduleID, "class='select-1'");?></td>
|
||||
<td><?php echo html::select("projects[$i]", $projects, $projectID, "class='select-1' onchange='loadProjectBuilds($productID, this.value, $i)'");?></td>
|
||||
<td class='a-left chosenBox' style='overflow:visible' id='buildBox<?php echo $i;?>'><?php echo html::select("openedBuilds[$i][]", $builds, '', "class='select-1' multiple");?></td>
|
||||
<td class='a-left chosenBox' style='overflow:visible' id='buildBox<?php echo $i;?>'><?php echo html::select("openedBuilds[$i][]", $builds, '', "class='select-1' multiple data-placeholder='{$lang->bug->placeholder->chooseBuilds}'");?></td>
|
||||
<td><?php echo html::input("titles[$i]", '', 'class=select-1');?></td>
|
||||
<td><?php echo html::textarea("stepses[$i]", '', "rows='1' class=text-1");?></td>
|
||||
<td><?php echo html::select("types[$i]", $lang->bug->typeList, '');?></td>
|
||||
|
||||
@@ -16,7 +16,6 @@ include '../../common/view/kindeditor.html.php';
|
||||
include '../../common/view/chosen.html.php';
|
||||
js::set('holders', $lang->bug->placeholder);
|
||||
js::set('page', 'confirmbug');
|
||||
js::set('mailto', $lang->bug->chosen->mailto);
|
||||
?>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<table class='table-1'>
|
||||
|
||||
@@ -18,7 +18,6 @@ include '../../common/view/alert.html.php';
|
||||
include '../../common/view/kindeditor.html.php';
|
||||
js::set('holders', $lang->bug->placeholder);
|
||||
js::set('page', 'create');
|
||||
js::set('mailto', $lang->bug->chosen->mailto);
|
||||
?>
|
||||
|
||||
<form method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
|
||||
@@ -26,7 +26,6 @@ js::set('oldStoryID' , $bug->story);
|
||||
js::set('oldTaskID' , $bug->task);
|
||||
js::set('oldOpenedBuild' , $bug->openedBuild);
|
||||
js::set('oldResolvedBuild' , $bug->resolvedBuild);
|
||||
js::set('mailto' , $lang->bug->chosen->mailto);
|
||||
?>
|
||||
|
||||
<form method='post' target='hiddenwin' enctype='multipart/form-data' id='dataform'>
|
||||
|
||||
@@ -355,7 +355,8 @@ $lang->downNotify = "Down notify";
|
||||
|
||||
$lang->suhosinInfo = "Warming:data is too large! Please enlarge the setting of <font color=red>sohusin.post.max_vars</font> and <font color=red>sohusin.request.max_vars</font> in php.ini. Otherwise partial data can't be saved.";
|
||||
|
||||
$lang->noResultsMatch = "No results match";
|
||||
$lang->noResultsMatch = "No results match";
|
||||
$lang->chooseUsersToMail = "Choose users to mail...";
|
||||
|
||||
/* Date times. */
|
||||
define('DT_DATETIME1', 'Y-m-d H:i:s');
|
||||
|
||||
@@ -356,7 +356,8 @@ $lang->downNotify = "下载桌面提醒";
|
||||
|
||||
$lang->suhosinInfo = "警告:数据太多,请在php.ini中修改<font color=red>sohusin.post.max_vars</font>和<font color=red>sohusin.request.max_vars</font>(设置更大的数)。 保存并重新启动apache,否则会造成部分数据无法保存。";
|
||||
|
||||
$lang->noResultsMatch = "没有匹配结果";
|
||||
$lang->noResultsMatch = "没有匹配结果";
|
||||
$lang->chooseUsersToMail = "选择要发信通知的用户...";
|
||||
|
||||
/* 时间格式设置。*/
|
||||
define('DT_DATETIME1', 'Y-m-d H:i:s');
|
||||
|
||||
@@ -10,9 +10,11 @@ if($config->debug)
|
||||
#colorbox, #cboxOverlay, #cboxWrapper{z-index:9999;}
|
||||
</style>
|
||||
<script>
|
||||
noResultsMatch = '<?php echo $lang->noResultsMatch;?>';
|
||||
noResultsMatch = '<?php echo $lang->noResultsMatch;?>';
|
||||
chooseUsersToMail = '<?php echo $lang->chooseUsersToMail;?>';
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#mailto").attr('data-placeholder', chooseUsersToMail);
|
||||
$("#productID").chosen({no_results_text: noResultsMatch});
|
||||
$("#projectID").chosen({no_results_text: noResultsMatch});
|
||||
});
|
||||
|
||||
@@ -268,4 +268,3 @@ $lang->story->placeholder->estimate = 'Estimate the story point.';
|
||||
|
||||
$lang->story->chosen = new stdClass();
|
||||
$lang->story->chosen->reviewedBy = 'Choose users who review...';
|
||||
$lang->story->chosen->mailto = 'Choose users to mail...';
|
||||
|
||||
@@ -268,4 +268,3 @@ $lang->story->placeholder->estimate = "完成该需求的工作量";
|
||||
|
||||
$lang->story->chosen = new stdClass();
|
||||
$lang->story->chosen->reviewedBy = '选择评审人...';
|
||||
$lang->story->chosen->mailto = '输入用户名自动完成...';
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<th class='rowhead'><nobr><?php echo $lang->story->mailto;?></nobr></th>
|
||||
<td>
|
||||
<?php
|
||||
echo html::select('mailto[]', $users, str_replace(' ' , '', $mailto), 'class="text-1" multiple');
|
||||
echo html::select('mailto[]', $users, str_replace(' ' , '', $mailto), "class='text-1' multiple");
|
||||
if($contactLists) echo html::select('', $contactLists, '', "class='f-right' onchange=\"setMailto('mailto', this.value)\"");
|
||||
?>
|
||||
</td>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php include '../../common/view/chosen.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::set('reviewedBy', $lang->story->chosen->reviewedBy);?>
|
||||
<?php js::set('mailto', $lang->story->chosen->mailto);?>
|
||||
<script language='Javascript'>
|
||||
function loadProduct(productID)
|
||||
{
|
||||
@@ -26,7 +24,5 @@ $(function()
|
||||
{
|
||||
$("#reviewedBy").chosen({no_results_text:noResultsMatch});
|
||||
$("#mailto").chosen({no_results_text:noResultsMatch});
|
||||
$("#reviewedBy_chzn .chzn-choices li.search-field input").attr('value', reviewedBy);
|
||||
$("#mailto_chzn .chzn-choices li.search-field input").attr('value', mailto);
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -49,7 +49,7 @@ var assignedTo = '<?php $story->lastEditedBy ? print($story->lastEditedBy) : pri
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->story->reviewedBy;?></th>
|
||||
<td><?php echo html::select('reviewedBy[]', $users, $app->user->account, "class='text-1' multiple");?></td>
|
||||
<td><?php echo html::select('reviewedBy[]', $users, $app->user->account, "class='text-1' multiple data-placeholder='{$lang->story->chosen->reviewedBy}'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->story->comment;?></th>
|
||||
|
||||
@@ -87,5 +87,4 @@ $(document).ready(function()
|
||||
setPreview();
|
||||
$("#story").chosen({no_results_text: noResultsMatch});
|
||||
$("#mailto").chosen({no_results_text: noResultsMatch});
|
||||
$("#mailto_chzn .chzn-choices li.search-field input").attr('value', mailto);
|
||||
});
|
||||
|
||||
@@ -2,7 +2,6 @@ $(function()
|
||||
{
|
||||
$("#story").chosen({no_results_text: noResultsMatch});
|
||||
$("#mailto").chosen({no_results_text: noResultsMatch});
|
||||
$("#mailto_chzn .chzn-choices li.search-field input").attr('value', mailto);
|
||||
$('.iframe').colorbox({width:900, height:500, iframe:true, transition:'none', onCleanup:function(){parent.location.href=parent.location.href;}});
|
||||
})
|
||||
|
||||
|
||||
@@ -233,6 +233,3 @@ $lang->task->report->finishedTasksPerDay->graph->rotateNames = '1';
|
||||
|
||||
$lang->task->placeholder = new stdclass();
|
||||
$lang->task->placeholder->estimate = 'The estimated time for this task';
|
||||
|
||||
$lang->task->chosen = new stdclass();
|
||||
$lang->task->chosen->mailto = 'Choose users to mail...';
|
||||
|
||||
@@ -233,6 +233,3 @@ $lang->task->report->finishedTasksPerDay->graph->rotateNames = '1';
|
||||
|
||||
$lang->task->placeholder = new stdclass();
|
||||
$lang->task->placeholder->estimate = '对该任务最初的预计';
|
||||
|
||||
$lang->task->chosen = new stdclass();
|
||||
$lang->task->chosen->mailto = '输入用户名进行选择...';
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
<?php include '../../common/view/datepicker.html.php';?>
|
||||
<?php include '../../common/view/kindeditor.html.php';?>
|
||||
<?php js::set('holders', $lang->task->placeholder);?>
|
||||
<?php js::set('mailto', $lang->task->chosen->mailto);?>
|
||||
<form method='post' enctype='multipart/form-data' id='dataform' class='ajaxForm'>
|
||||
<table align='center' class='table-1 a-left'>
|
||||
<caption>
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
<?php js::set('oldStoryID', $task->story); ?>
|
||||
<?php js::set('confirmChangeProject', $lang->task->confirmChangeProject); ?>
|
||||
<?php js::set('changeProjectConfirmed', false); ?>
|
||||
<?php js::set('mailto', $lang->task->chosen->mailto);?>
|
||||
<form method='post' enctype='multipart/form-data' target='hiddenwin' id='dataform'>
|
||||
<div id='titlebar'>
|
||||
<div id='main'>TASK #<?php echo $task->id . $lang->colon . html::input('name', $task->name, 'class="text-1"');?></div>
|
||||
|
||||
@@ -909,8 +909,8 @@ class user extends control
|
||||
public function ajaxGetContactUsers($contactListID)
|
||||
{
|
||||
$users = $this->user->getPairs('nodeleted,devfirst');
|
||||
if(!$contactListID) return print(html::select('mailto[]', $users, '', "class='text-1' multiple"));
|
||||
if(!$contactListID) return print(html::select('mailto[]', $users, '', "class='text-1' multiple data-placeholder='{$this->lang->chooseUsersToMail}'"));
|
||||
$list = $this->user->getContactListByID($contactListID);
|
||||
return print(html::select('mailto[]', $users, $list->userList, "class='text-1' multiple"));
|
||||
return print(html::select('mailto[]', $users, $list->userList, "class='text-1' multiple data-placeholder='{$this->lang->chooseUsersToMail}'"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user