* 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'>
|
||||
|
||||
Reference in New Issue
Block a user