$(this).hide();
saveSourceChangesBtn.attr("disabled", "disabled");
- $("#git-repo-info", "#directory-info").hide();
+ $("#git-repo-info, #directory-info").hide();
$("#edit-layer-source-form").fadeIn();
if ($("#layer-dir-path-in-details").val() == "") {
//Local dir path is empty...
});
$('#cancel-changes-for-switch').click(function() {
- $("#edit-layer-source-form").add("#layer-git").add("#layer-dir").fadeOut().promise().done(function(){
- editLayerSource.show();
- });
+ $("#edit-layer-source-form").hide();
+ $("#directory-info, #git-repo-info").fadeIn();
+ editLayerSource.show();
});
saveSourceChangesBtn.click(function() {
<!-- layer details pane -->
<div id="information" class="tab-pane active">
- {% if layerversion.layer.local_source_dir %}
<h3>Layer source code location</h3>
+ {% if layerversion.layer.local_source_dir %}
<dl class="dl-horizontal" id="directory-info">
<dt>
Path to the layer directory
<input type="radio" name="source-location" id="repo" value="repo">
In a <strong>Git repository</strong>
</label>
- <p class="help-block" style="margin-left:20px;width:70%;">To build the layer Toaster must be able to access the Git repository, otherwise builds will fail. Toaster will\
- fetch and checkout your chosen Git revision every time you start a build.</p>
+ <p class="help-block" style="margin-left:20px;width:70%;">To build the layer Toaster must be able to access the Git repository, otherwise builds will fail. Toaster will fetch and checkout your chosen Git revision every time you start a build.</p>
</div>
<div class="radio" style="margin-top:15px;">
<label>