summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-system/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-25 19:37:27 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-25 19:37:27 +0200
commite17cd94be707d6dff6873fc8562dfda43810dcf9 (patch)
tree10ac929f8c7ff9562d00873d5571da282f497318 /modules/luci-mod-system/htdocs/luci-static/resources
parentdfe9d28987d5d8f8ad6b870348515f87c18e216b (diff)
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static/resources')
-rw-r--r--modules/luci-mod-system/htdocs/luci-static/resources/view/system/flash.js4
1 files changed, 2 insertions, 2 deletions
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 9ad64dad4..bea587625 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.'));