diff --git a/www/common/userObject.js b/www/common/userObject.js index e6309a88c..23978cb65 100644 --- a/www/common/userObject.js +++ b/www/common/userObject.js @@ -666,9 +666,9 @@ define([ var data = allFilesList[id] || allSFList[id]; if (!data) { return; } if (Array.isArray(data.tags) && containsSearchedTag(data.tags)) { - res.push(id); - } else - var title = data.title || data.lastTitle + return void res.push(id); + } + var title = data.title || data.lastTitle; if ((title && title.toLowerCase().indexOf(lValue) !== -1) || (data.filename && data.filename.toLowerCase().indexOf(lValue) !== -1)) { res.push(id); diff --git a/www/pad/inner.js b/www/pad/inner.js index 84fd311f8..f189d7447 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -456,7 +456,7 @@ define([ }); }; - var mkPrintButton = function (framework, editor, ckeditor) { + var mkPrintButton = function (framework, editor) { var $printButton = framework._.sfCommon.createButton('print', true); $printButton.click(function () { editor.execCommand('print');