Skip to content

Commit

Permalink
Fix saving file from WebUI on windows
Browse files Browse the repository at this point in the history
Resolves #386

PUBLISHED_FROM=723414e2fc5280c7b03f72800236fd831c1f948f
  • Loading branch information
dimonomid authored and cesantabot committed Dec 14, 2017
1 parent 6c2d88a commit b7ac249
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mos/bindata_assetfs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mos/web_root/page_code.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ <h2 class="modal-title text-center"><span class="title">App Manager</span> &nbsp
$(document).off('click', '#toolbar-copy-button');
$(document).on('click', '#toolbar-copy-button', function() {
var btn = $(this);
var fileName = $('#file-dropdown').val().replace(/^.*\//, '');
var fileName = $('#file-dropdown').val().replace(/^.*[\\\/]/, '');
var text = code_editor.getValue();
if (!fileName) return;
spin(btn);
Expand Down

0 comments on commit b7ac249

Please sign in to comment.