diff --git a/module/story/view/header.html.php b/module/story/view/header.html.php index cb917062dd..b7217dbee1 100644 --- a/module/story/view/header.html.php +++ b/module/story/view/header.html.php @@ -34,6 +34,17 @@ function loadProduct(productID) function loadBranch() { + if(typeof parentStory != 'undefined' && parentStory) + { + confirmLoadBranch = confirm(changeBranchTips); + if(!confirmLoadBranch) + { + $('#branch').val(oldBranch); + $('#branch').trigger("chosen:updated"); + return false; + } + } + var branch = $('#branch').val(); if(typeof(branch) == 'undefined') branch = 0; loadProductModules($('#product').val(), branch);