diff --git a/applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd.js b/applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd.js index f5cfc6f3ec5e..d901457fa4c5 100644 --- a/applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd.js +++ b/applications/luci-app-lldpd/htdocs/luci-static/resources/lldpd.js @@ -10,22 +10,6 @@ 'require session'; 'require uci'; -const appVersion = '2.0.2'; -const appHomeUrl = 'https://github.com/tano-systems/luci-app-lldpd'; - -const appFooter = E('div', { 'class': 'cbi-section' }, [ - E('p', { 'class': 'cbi-section-node tano-copyright' }, [ - E('a', { 'href': appHomeUrl }, - _('LLDPd LuCI application (version %s)').format(appVersion)), - E('br', {}), - _('© 2018–2021, Tano Systems LLC, Anton Kikin'), - ' <', - E('a', { 'href': 'mailto:a.kikin@tano-systems.com' }, - E('nobr', {}, 'a.kikin@tano-systems.com')), - '>' - ]) -]); - /* * Filter neighbors (-H) * @@ -190,39 +174,20 @@ var cbiFilterSelect = form.Value.extend({ function init() { return new Promise(function(resolveFn, rejectFn) { var data = session.getLocalData('luci-app-lldpd'); - if ((data !== null) && data.hasOwnProperty('hideFooter')) { + if (data !== null) { return resolveFn(); } data = {}; return uci.load('luci').then(function() { - data.hideFooter = (uci.get('luci', 'app_tn_lldpd', 'hide_footer') == '1') - ? true : false; session.setLocalData('luci-app-lldpd', data); return resolveFn(); }); }); } -function isNeedToHideFooter() { - var data = session.getLocalData('luci-app-lldpd'); - - if (data === null) - data = {}; - - if (data.hasOwnProperty('hideFooter')) - return data.hideFooter; - else - return false; -} - -function renderFooter() { - return isNeedToHideFooter() ? '' : appFooter; -} - return L.Class.extend({ cbiFilterSelect: cbiFilterSelect, - renderFooter: renderFooter, init: init, }); diff --git a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js index 8ee65a8745f1..54c9ebd62e80 100644 --- a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js +++ b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/config.js @@ -474,11 +474,4 @@ return L.view.extend({ return m.render(); }, - - addFooter: function() { - return [ - this.super('addFooter', arguments), - lldpd.renderFooter() - ]; - }, }); diff --git a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js index 89035cf6177b..96847e11c3ff 100644 --- a/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js +++ b/applications/luci-app-lldpd/htdocs/luci-static/resources/view/lldpd/status.js @@ -705,13 +705,6 @@ return L.view.extend({ }, this)); }, - addFooter: function() { - return [ - this.super('addFooter', arguments), - lldpd.renderFooter() - ]; - }, - handleSaveApply: null, handleSave: null, handleReset: null