diff --git a/module/bug/js/browse.js b/module/bug/js/browse.js index 49f06f9bba..9e704131eb 100644 --- a/module/bug/js/browse.js +++ b/module/bug/js/browse.js @@ -3,24 +3,6 @@ $(document).ready(function() if(browseType == 'bysearch') ajaxGetSearchForm(); if($('#bugList thead th.w-title').width() < 150) $('#bugList thead th.w-title').width(150); - $('.dropdown-menu .with-search .menu-search').click(function(e) - { - e.stopPropagation(); - return false; - }).on('keyup change paste', 'input', function() - { - var val = $(this).val().toLowerCase(); - var $options = $(this).closest('.dropdown-menu.with-search').find('.option'); - if(val == '') return $options.removeClass('hide'); - $options.each(function() - { - var $option = $(this); - $option.toggleClass('hide', $option.text().toString().toLowerCase().indexOf(val) < 0 && $option.data('key').toString().toLowerCase().indexOf(val) < 0); - }); - }); - setTimeout(function(){fixedTfootAction('#bugForm')}, 100); - setTimeout(function(){fixedTheadOfList('#bugList')}, 100); - if(flow == 'onlyTest') { $('#modulemenu > .nav').append($('#featurebar > .submenu').html()); diff --git a/module/build/js/view.js b/module/build/js/view.js index 5f8a510b82..a05c919eb0 100644 --- a/module/build/js/view.js +++ b/module/build/js/view.js @@ -8,7 +8,6 @@ function showLink(buildID, type, param) $('#' + type + 'List').closest('form').hide(); var formID = type == 'story' ? '#unlinkedStoriesForm' : '#unlinkedBugsForm'; - setTimeout(function(){fixedTfootAction(formID)}, 100); $('[data-ride="table"]').table(); }); @@ -18,7 +17,6 @@ $(function() if(flow != 'onlyTest') { if(link == 'true') showLink(buildID, type, param); - fixedTfootAction($('#' + type + 'List').closest('form')); $('.nav.nav-tabs a[data-toggle="tab"]').on('shown.zui.tab', function(e) { var href = $(e.target).attr('href'); @@ -26,7 +24,6 @@ $(function() if(tabPane.size() == 0) return; var formID = tabPane.find('.linkBox').find('form:last'); if(formID.size() == 0) formID = tabPane.find('form:last'); - setTimeout(function(){fixedTfootAction(formID)}, 100); }); } }) diff --git a/module/company/js/browse.js b/module/company/js/browse.js index 8b2bc52ed0..e69de29bb2 100644 --- a/module/company/js/browse.js +++ b/module/company/js/browse.js @@ -1,5 +0,0 @@ -$(function() -{ - setTimeout(function(){fixedTfootAction('#userListForm')}, '100'); - setTimeout(function(){fixedTheadOfList('#userList')}, '100'); -}) diff --git a/module/my/js/common.js b/module/my/js/common.js index d6befcca8d..bb309aff62 100644 --- a/module/my/js/common.js +++ b/module/my/js/common.js @@ -4,25 +4,4 @@ $(function() var sign = config.requestType == 'GET' ? '&' : '?'; sp.attr('href', sp.attr('href') + sign + 'onlybody=yes').modalTrigger({width:600, type:'iframe'}); scp.attr('href', scp.attr('href') + sign + 'onlybody=yes').modalTrigger({width:500, type:'iframe'}); - - /* Fixed table actions */ - if($('table.tablesorter').closest('form').size() > 0) fixedTfootAction($('table.tablesorter').closest('form')); - /* Fixed table header */ - if($('table.tablesorter').size() > 0) fixedTheadOfList($('table.tablesorter:first')); - - $('.dropdown-menu .with-search .menu-search').click(function(e) - { - e.stopPropagation(); - return false; - }).on('keyup change paste', 'input', function() - { - var val = $(this).val().toLowerCase(); - var $options = $(this).closest('.dropdown-menu.with-search').find('.option'); - if(val == '') return $options.removeClass('hide'); - $options.each(function() - { - var $option = $(this); - $option.toggleClass('hide', $option.text().toString().toLowerCase().indexOf(val) < 0 && $option.data('key').toString().toLowerCase().indexOf(val) < 0); - }); - }); }); diff --git a/module/my/view/bug.html.php b/module/my/view/bug.html.php index 39a1531b68..2fe940949c 100644 --- a/module/my/view/bug.html.php +++ b/module/my/view/bug.html.php @@ -36,28 +36,28 @@ idAB);?> - bug->severityAB);?> - priAB);?> + bug->severityAB);?> + priAB);?> typeAB);?> bug->title);?> openedByAB);?> bug->assignedTo);?> bug->resolvedByAB);?> bug->resolutionAB);?> - actions;?> + actions;?> +
- - - id);?>
+ + id);?> bug->severityList, $bug->severity, $bug->severity)?>'>bug->severityList, $bug->severity, $bug->severity);?> pri?>'>bug->priList, $bug->pri)?> diff --git a/module/my/view/score.html.php b/module/my/view/score.html.php index e6c91d59e9..bbd746d5b1 100644 --- a/module/my/view/score.html.php +++ b/module/my/view/score.html.php @@ -20,8 +20,8 @@ my->scoreRule, '', "class='btn btn-primary'");?> -
- +
+
diff --git a/module/my/view/task.html.php b/module/my/view/task.html.php index e17fc348c2..989c02eb12 100644 --- a/module/my/view/task.html.php +++ b/module/my/view/task.html.php @@ -38,31 +38,31 @@ idAB);?> - + - + - + - + diff --git a/module/my/view/testcase.html.php b/module/my/view/testcase.html.php index cb34fe4cc1..9b0345a8b6 100644 --- a/module/my/view/testcase.html.php +++ b/module/my/view/testcase.html.php @@ -25,9 +25,9 @@ ?> -
+
-
score->time; ?> priAB);?> priAB);?> task->project);?> task->name);?> openedByAB);?> task->assignedTo);?> task->finishedBy);?> task->estimateAB);?> task->estimateAB);?> task->consumedAB);?> task->leftAB);?> task->leftAB);?> task->deadlineAB);?> statusAB);?>actions;?>actions;?>
+
- - - id);?>
+ + id);?>
pri;?>'>task->priList, $task->pri);?> createLink('project', 'browse', "projectid=$task->projectID"), $task->projectName);?>
+
app->loadLang('testtask'); @@ -44,7 +44,7 @@ idAB);?> - + @@ -52,7 +52,7 @@ - + @@ -63,12 +63,13 @@ ?> @@ -79,20 +80,23 @@ diff --git a/module/my/view/testtask.html.php b/module/my/view/testtask.html.php index e603402700..c22dd1e61c 100644 --- a/module/my/view/testtask.html.php +++ b/module/my/view/testtask.html.php @@ -22,8 +22,8 @@ ?> -
-
priAB);?> priAB);?> testcase->title);?> typeAB);?> openedByAB);?> testtask->lastRunTime);?> testtask->lastRunResult);?> statusAB);?> actions;?> actions;?>
+
- - - id);?> +
+ + id);?>
pri?>'>testcase->priList, $case->pri, $case->pri)?> createLink('testcase', 'view', "testcaseID=$caseID&version=$case->version"), $case->title, null, "style='color: $case->color'");?>lastRunResult) echo $lang->testcase->resultList[$case->lastRunResult];?> testcase->statusList[$case->status];?> - version", '', 'list', 'play', '', 'iframe', '', "data-width='95%'"); - common::printIcon('testtask', 'results', "runID=$runID&caseID=$caseID", '', 'list', 'list-alt', '', 'iframe', '', "data-width='95%'"); - common::printIcon('testcase', 'edit', "caseID=$caseID", $case, 'list', 'edit'); - common::printIcon('testcase', 'create', "productID=$case->product&branch=$case->branch&moduleID=$case->module&from=testcase¶m=$caseID", $case, 'list', 'copy'); +
+ product&branch=$case->branch&extra=caseID=$caseID,version=$case->version,runID=$runID", $case, 'list', 'bug'); + common::printIcon('testcase', 'create', "productID=$case->product&branch=$case->branch&moduleID=$case->module&from=testcase¶m=$caseID", $case, 'list', 'copy'); - if(common::hasPriv('testcase', 'delete')) - { - $deleteURL = $this->createLink('testcase', 'delete', "caseID=$caseID&confirm=yes"); - echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"caseList\",confirmDelete)", '', '', "class='btn' title='{$lang->testcase->delete}'"); - } - - common::printIcon('testcase', 'createBug', "product=$case->product&branch=$case->branch&extra=caseID=$caseID,version=$case->version,runID=$runID", $case, 'list', 'bug'); - ?> + if(common::hasPriv('testcase', 'delete')) + { + $deleteURL = $this->createLink('testcase', 'delete', "caseID=$caseID&confirm=yes"); + echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"caseList\",confirmDelete)", '', '', "class='btn' title='{$lang->testcase->delete}'"); + } + ?> +
+ version", '', 'list', 'play', '', 'iframe', '', "data-width='95%'"); + common::printIcon('testtask', 'results', "runID=$runID&caseID=$caseID", '', 'list', 'list-alt', '', 'iframe', '', "data-width='95%'"); + common::printIcon('testcase', 'edit', "caseID=$caseID", $case, 'list', 'edit'); + ?>
+
+
diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php index 7b7cce7779..7eca698051 100644 --- a/module/my/view/todo.html.php +++ b/module/my/view/todo.html.php @@ -68,13 +68,13 @@ diff --git a/module/product/js/all.js b/module/product/js/all.js index 25ecb6b959..f35f9625b9 100644 --- a/module/product/js/all.js +++ b/module/product/js/all.js @@ -6,6 +6,4 @@ $(function() for(i = 0; i < data.list.length; i++) list += $(data.list[i]).attr('data-id') + ','; $.post(createLink('product', 'updateOrder'), {'products' : list, 'orderBy' : orderBy}); }); - fixedTfootAction('#productsForm'); - fixedTheadOfList('#productList'); }); diff --git a/module/product/view/all.html.php b/module/product/view/all.html.php index 0b45a006b6..0cc2079efb 100644 --- a/module/product/view/all.html.php +++ b/module/product/view/all.html.php @@ -58,7 +58,7 @@ '> -
+
- - - id?>
+ + id?>
date == '2030-01-01' ? $lang->todo->periods['future'] : $todo->date;?> todo->typeList[$todo->type];?>
+
recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?> diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index b11e313c33..84f50a2d54 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -218,50 +218,6 @@ echo ''; } - if(common::hasPriv('story', 'batchChangeModule')) - { - $withSearch = count($modules) > 8; - echo "'; - } - else - { - echo '
  • ' . html::a('javascript:;', $lang->story->moduleAB, '', $class) . '
  • '; - } - - if(common::hasPriv('story', 'batchChangePlan')) - { - unset($plans['']); - $plans = array(0 => $lang->null) + $plans; - $withSearch = count($plans) > 8; - echo "'; - } - else - { - echo '
  • ' . html::a('javascript:;', $lang->story->planAB, '', $class) . '
  • '; - } - if(common::hasPriv('story', 'batchChangeStage')) { echo "