Changes to Pythin (cshtml) xslt and template editors
This commit is contained in:
@@ -12,12 +12,13 @@
|
||||
closeErrorDiv();
|
||||
|
||||
var codeVal = jQuery('#<%= pythonSource.ClientID %>').val();
|
||||
|
||||
|
||||
//if CodeMirror is not defined, then the code editor is disabled.
|
||||
if (typeof (CodeMirror) != "undefined") {
|
||||
codeVal = codeEditor.getCode();
|
||||
codeVal = UmbEditor.GetCode();
|
||||
}
|
||||
|
||||
|
||||
umbraco.presentation.webservices.codeEditorSave.SaveDLRScript(jQuery('#<%= pythonFileName.ClientID %>').val(), '<%= pythonFileName.Text %>', codeVal, document.getElementById('<%= SkipTesting.ClientID %>').checked, submitSucces, submitFailure);
|
||||
}
|
||||
|
||||
@@ -43,7 +44,6 @@
|
||||
jQuery(id).hide();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</asp:Content>
|
||||
<asp:Content ID="cp1" runat="server" ContentPlaceHolderID="body">
|
||||
@@ -60,7 +60,7 @@
|
||||
<div id="errorDiv" style="position: relative; display: none;" class="error">
|
||||
-</div>
|
||||
</cc1:PropertyPanel>
|
||||
<cc1:CodeArea ID="pythonSource" ClientSaveMethod="doSubmit" CodeBase="Python" AutoResize="true" OffSetX="47"
|
||||
<cc1:CodeArea ID="pythonSource" ClientSaveMethod="doSubmit" AutoSuggest="true" CodeBase="Razor" AutoResize="true" OffSetX="47"
|
||||
OffSetY="55" runat="server" />
|
||||
</cc1:Pane>
|
||||
</cc1:UmbracoPanel>
|
||||
|
||||
Reference in New Issue
Block a user