* Finish Task #81166
This commit is contained in:
20
extension/lite/ticket/ext/view/create.lite.html.hook.php
Normal file
20
extension/lite/ticket/ext/view/create.lite.html.hook.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<script>
|
||||
/**
|
||||
* Load modules by product.
|
||||
*
|
||||
* @param int productID
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function loadModules(productID)
|
||||
{
|
||||
link = createLink('tree', 'ajaxGetOptionMenu', 'productID=' + productID + '&viewtype=ticket&branch=all&rootModuleID=0&returnType=html&fieldID=&needManage=false');
|
||||
$('#moduleBox').load(link, function(data)
|
||||
{
|
||||
var $inputGroup = $(this);
|
||||
$inputGroup.find('select').chosen()
|
||||
$inputGroup.prepend("<span class='input-group-addon'>" + moduleLang + "</span>");
|
||||
});
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user