From fb21a650cec1b6ff471e8c562dccb0c6566a13a0 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 11 Jul 2017 17:40:13 +0200 Subject: [PATCH] Lint errors --- www/common/diffMarked.js | 2 +- www/common/toolbar2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 47acb1fba..ccd4ebf7c 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -144,7 +144,7 @@ define([ var id = $content.attr('id'); if (!id) { throw new Error("The element must have a valid id"); } var pattern = /()<\/media-tag>/g; - var newHtmlFixed = newHtml.replace(pattern, function (all, tag, src, key) { + var newHtmlFixed = newHtml.replace(pattern, function (all, tag, src) { var mt = tag; if (mediaMap[src]) { mediaMap[src].forEach(function (n) { diff --git a/www/common/toolbar2.js b/www/common/toolbar2.js index ceeeb8caf..cdc571bfe 100644 --- a/www/common/toolbar2.js +++ b/www/common/toolbar2.js @@ -610,7 +610,7 @@ define([ var $hoverable = $('', {'class': 'hoverable'}).appendTo($titleContainer); // Buttons - var $text = $('', { + $('', { 'class': 'title pageTitle' }).appendTo($hoverable).text(config.pageTitle); };