Merge pull request #288 from Squidly271/6.4-wip

Don't show Template Dropdown in Add Container when referrer is Community Applications
This commit is contained in:
tom mortensen
2018-03-12 13:37:34 -07:00
committed by GitHub
@@ -1183,7 +1183,7 @@ optgroup.title{background-color:#625D5D;color:#FFFFFF;text-align:center;margin-t
<? if ($xmlType == "edit"):
if ($DockerClient->doesContainerExist($templateName)): echo "<input type='hidden' name='existingContainer' value='${templateName}'>\n"; endif;
else:?>
<tr>
<tr class='TemplateDropDown'>
<td>Template:</td>
<td>
<select id="TemplateSelect" size="1" onchange="loadTemplate(this);">
@@ -1785,6 +1785,9 @@ optgroup.title{background-color:#625D5D;color:#FFFFFF;text-align:center;margin-t
echo "$('.advanced-switch').siblings('.switch-button-background').click();";
}?>
});
if ( window.location.href.indexOf("/Apps/") > 0 ) {
$(".TemplateDropDown").hide();
}
</script>
<?END:?>