diff --git a/IDE/frontend-dev/src/Views/EditorView.js b/IDE/frontend-dev/src/Views/EditorView.js index eab68af4e..611ee385b 100644 --- a/IDE/frontend-dev/src/Views/EditorView.js +++ b/IDE/frontend-dev/src/Views/EditorView.js @@ -182,9 +182,7 @@ class EditorView extends View { this.projectModel.setKey('readOnly', true); if (!opts.fileType) opts.fileType = '0'; - if (null === data || null === opts.fileName) { // file was deleted - // print a warning in the pd div. This is so that we don't need - // special handling of yet another div + if (null === data || null === opts.fileName) { // file was deleted, print a warning $('[data-editor-msg]').html(json.editor_view.deleted.error); $('[data-editor-msg-parent]').addClass('active'); } else if (opts.fileType.indexOf('image') !== -1){ @@ -245,7 +243,7 @@ class EditorView extends View { this.emit('compare-files', true); } else if ('binary' === opts.fileType) { - // print a warning in the pd div like above + // print a warning $('[data-editor-msg]').html(json.editor_view.binary.error); $('[data-editor-msg-parent]').addClass('active'); } else { diff --git a/IDE/public/js/bundle.js b/IDE/public/js/bundle.js index cc0122469..a2409d7b6 100644 --- a/IDE/public/js/bundle.js +++ b/IDE/public/js/bundle.js @@ -2084,9 +2084,7 @@ var EditorView = function (_View) { if (!opts.fileType) opts.fileType = '0'; if (null === data || null === opts.fileName) { - // file was deleted - // print a warning in the pd div. This is so that we don't need - // special handling of yet another div + // file was deleted, print a warning $('[data-editor-msg]').html(json.editor_view.deleted.error); $('[data-editor-msg-parent]').addClass('active'); } else if (opts.fileType.indexOf('image') !== -1) { @@ -2141,7 +2139,7 @@ var EditorView = function (_View) { // start comparison with file on disk this.emit('compare-files', true); } else if ('binary' === opts.fileType) { - // print a warning in the pd div like above + // print a warning $('[data-editor-msg]').html(json.editor_view.binary.error); $('[data-editor-msg-parent]').addClass('active'); } else {