* Finish task #3218.

This commit is contained in:
pengjiangxiu
2017-09-13 09:39:11 +08:00
parent c10a3cb7b5
commit 479a1b1ea8
8 changed files with 28 additions and 4 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ class custom extends control
/* Fix bug #942. */
if($field == 'priList' and !is_numeric($key)) die(js::alert($this->lang->custom->notice->priListKey));
if($module == 'bug' and $field == 'severityList' and !is_numeric($key)) die(js::alert($this->lang->custom->notice->severityListKey));
if(!empty($key) and !validater::checkCode($key)) die(js::alert($this->lang->custom->notice->keyList));
if(!empty($key) and $key != 'n/a' and !validater::checkCode($key)) die(js::alert($this->lang->custom->notice->keyList));
/* the length of role is 20, check it when save. */
if($module == 'user' and $field == 'roleList' and strlen($key) > 20) die(js::alert($this->lang->custom->notice->userRole));
+2 -2
View File
@@ -21,10 +21,10 @@ class report extends control
{
$this->locate(inlink('productSummary'));
}
/**
* Project deviation report.
*
*
* @access public
* @return void
*/
+4
View File
@@ -0,0 +1,4 @@
$(document).ready(function()
{
setTimeout(function(){fixedTheadOfList('#bugAssign')}, 100);
});
+5
View File
@@ -1,3 +1,8 @@
$(document).ready(function()
{
setTimeout(function(){fixedTheadOfList('#bug')}, 100);
});
function changeParams(obj)
{
var begin = $('.main .row').find('#begin').val();
+5
View File
@@ -1,3 +1,8 @@
$(document).ready(function()
{
setTimeout(function(){fixedTheadOfList('#product')}, 100);
});
$('#conditions input:checkbox').change(function()
{
var conditions = '';
+5
View File
@@ -1,3 +1,8 @@
$(document).ready(function()
{
setTimeout(function(){fixedTheadOfList('#projectList')}, 100);
});
function changeDate(begin, end)
{
if(begin.indexOf('-') != -1)
+5
View File
@@ -1,3 +1,8 @@
$(document).ready(function()
{
setTimeout(function(){fixedTheadOfList('#workload')}, 100);
});
function changeParams(obj)
{
var begin = $('.main .row').find('#begin').val();
+1 -1
View File
@@ -21,7 +21,7 @@
<span class='input-group-addon'><?php echo $lang->report->to;?></span>
<div class='datepicker-wrapper datepicker-date'><?php echo html::input('date', $end, "class='form-control form-date' onchange='changeDate(\"$begin\", this.value)'");?></div>
</div>
<table class='table table-condensed table-striped table-bordered tablesorter table-fixed active-disabled'>
<table class='table table-condensed table-striped table-bordered tablesorter table-fixed active-disabled' id='projectList'>
<thead>
<tr class='colhead'>
<th class='w-id'><?php echo $lang->report->id;?></th>