From 7d34b2a66451302f4177c6b0a9497279d049b2f9 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Sun, 12 Mar 2017 01:15:33 +0530 Subject: [PATCH] refactor: change id of saved item count el --- src/index.html | 2 +- src/script.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.html b/src/index.html index 3c2810a..25f85d6 100644 --- a/src/index.html +++ b/src/index.html @@ -471,7 +471,7 @@
-

My Library

+

My Library

Export diff --git a/src/script.js b/src/script.js index ee22221..d53f360 100644 --- a/src/script.js +++ b/src/script.js @@ -4,7 +4,7 @@ onboardModal, layoutBtn1, layoutBtn2, layoutBtn3, layoutBtn4, helpBtn, onboardMo addLibraryModal, addLibraryModal, notificationsBtn, notificationsModal, notificationsModal, notificationsModal, notificationsBtn, codepenBtn, saveHtmlBtn, saveBtn, settingsBtn, onboardModal, settingsModal, notificationsBtn, onboardShowInTabOptionBtn, editorThemeLinkTag, -onboardDontShowInTabOptionBtn, TextareaAutoComplete */ +onboardDontShowInTabOptionBtn, TextareaAutoComplete, savedItemCountEl */ /* eslint-disable no-extra-semi */ ;(function (alertsService) { @@ -311,11 +311,11 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */ + 'X' + '

' + item.title + '

Last updated: ' + utils.getHumanDate(item.updatedOn) + '
'; }); - savedItemCount.textContent = '(' + items.length + ')'; - savedItemCount.style.display = 'inline'; + savedItemCountEl.textContent = '(' + items.length + ')'; + savedItemCountEl.style.display = 'inline'; } else { html += '

Nothing saved here.

'; - savedItemCount.style.display = 'none'; + savedItemCountEl.style.display = 'none'; } savedItemsPane.querySelector('#js-saved-items-wrap').innerHTML = html; toggleSavedItemsPane();