From e17cd94be707d6dff6873fc8562dfda43810dcf9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 25 Sep 2019 19:37:27 +0200 Subject: luci-mod-system: flash.js: rename handleReset to handleFirstboot Rename the procedure to prevent a name clash with the standard view action which we intentionally disable. Ref: https://github.com/openwrt/luci/commit/3c40a7450a9b7d340cdc9e233818c63a8092fec2#commitcomment-35233207 Signed-off-by: Jo-Philipp Wich --- .../luci-mod-system/htdocs/luci-static/resources/view/system/flash.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/luci-mod-system/htdocs/luci-static') diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js index 9ad64dad48..bea587625d 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js @@ -239,7 +239,7 @@ return L.view.extend({ form.parentNode.removeChild(form); }, - handleReset: function(ev) { + handleFirstboot: function(ev) { if (!confirm(_('Do you really want to erase all settings?'))) return; @@ -499,7 +499,7 @@ return L.view.extend({ o = ss.option(form.Button, 'reset', _('Reset to defaults')); o.inputstyle = 'negative important'; o.inputtitle = _('Perform reset'); - o.onclick = this.handleReset; + o.onclick = this.handleFirstboot; } o = ss.option(form.Button, 'restore', _('Restore backup'), _('Custom files (certificates, scripts) may remain on the system. To prevent this, perform a factory-reset first.')); -- cgit v1.2.3