From a78b597ebb035dbbbf595e8c25b79f7e1c58f917 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 18 Sep 2017 15:51:47 +0200 Subject: [PATCH] lint errors --- www/drive/main.js | 6 +++--- www/pad/inner.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/www/drive/main.js b/www/drive/main.js index 4d8ea4acd..bfdb22e7e 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1777,10 +1777,10 @@ define([ draggable: draggable }); if (Array.isArray(APP.selectedFiles)) { - var idx = APP.selectedFiles.indexOf(id); - if (idx !== -1) { + var sidx = APP.selectedFiles.indexOf(id); + if (sidx !== -1) { $element.addClass('selected'); - APP.selectedFiles.splice(idx, 1); + APP.selectedFiles.splice(sidx, 1); } } addFileData(id, $element); diff --git a/www/pad/inner.js b/www/pad/inner.js index b114a0ac7..cc6050f47 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -678,13 +678,13 @@ define([ onSelect: function (data) { if (data.type === 'file') { var mt = ''; - editor.insertElement(CKEDITOR.dom.element.createFromHtml(mt)); + editor.insertElement(window.CKEDITOR.dom.element.createFromHtml(mt)); return; } } }; common.initFilePicker(fileDialogCfg); - APP.$mediaTagButton = $('