+ Add product filter box to build list.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
.select-product-box {width: 180px;}
|
||||
@@ -46,3 +46,15 @@ window.confirmDelete = function(buildID)
|
||||
$.ajaxSubmit({url: $.createLink('build', 'delete', 'buildID=' + buildID)});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Change product.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
window.changeProduct = function()
|
||||
{
|
||||
const link = $.createLink('execution', 'build', 'executionID=' + executionID + '&type=product¶m=' + $(this).val());
|
||||
loadPage(link);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,18 @@ featureBar
|
||||
(
|
||||
set::current($type),
|
||||
set::linkParams("executionID={$executionID}&type={key}¶m={$param}&orderBy={$orderBy}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"),
|
||||
li(searchToggle(set::module('executionBuild')))
|
||||
div
|
||||
(
|
||||
set::class('select-product-box'),
|
||||
select
|
||||
(
|
||||
set::name('product'),
|
||||
set::value($product),
|
||||
set::items($products),
|
||||
on::change('changeProduct'),
|
||||
),
|
||||
),
|
||||
li(searchToggle(set::module('executionBuild'))),
|
||||
);
|
||||
|
||||
/* zin: Define the toolbar on main menu. */
|
||||
@@ -27,6 +38,7 @@ toolbar
|
||||
);
|
||||
|
||||
jsVar('orderBy', $orderBy);
|
||||
jsVar('executionID', $executionID);
|
||||
jsVar('sortLink', helper::createLink('execution', 'build', "executionID={$executionID}&type={$type}¶m={$param}&orderBy={orderBy}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"));
|
||||
jsVar('scmPathTip', $lang->build->scmPath);
|
||||
jsVar('filePathTip', $lang->build->filePath);
|
||||
|
||||
Reference in New Issue
Block a user