* Finish task #7550.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
?>
|
||||
<?php include './header.html.php';?>
|
||||
<?php js::set('oldProductID', $story->product);?>
|
||||
<?php js::set('parentStory', !empty($story->children));?>
|
||||
<?php js::set('moveChildrenTips', $lang->story->moveChildrenTips);?>
|
||||
<div class='main-content' id='mainContent'>
|
||||
|
||||
@@ -3,8 +3,29 @@
|
||||
<script>
|
||||
function loadProduct(productID)
|
||||
{
|
||||
if(parentStory) alert(moveChildrenTips);
|
||||
if(typeof hasSR != 'undefined' && hasSR) alert(moveSRTips);//Set hasSR variable in pro and biz.
|
||||
if(parentStory)
|
||||
{
|
||||
confirmLoadProduct = confirm(moveChildrenTips);
|
||||
if(!confirmLoadProduct)
|
||||
{
|
||||
$('#product').val(oldProductID);
|
||||
$('#product').trigger("chosen:updated");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if(typeof hasSR != 'undefined' && hasSR)
|
||||
{
|
||||
confirmLoadProduct = confirm(moveSRTips);//Set hasSR variable in pro and biz.
|
||||
if(!confirmLoadProduct)
|
||||
{
|
||||
$('#product').val(oldProductID);
|
||||
$('#product').trigger("chosen:updated");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
oldProductID = $('#product').val();
|
||||
|
||||
loadProductBranches(productID)
|
||||
loadProductModules(productID);
|
||||
|
||||
Reference in New Issue
Block a user