mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-27 04:40:34 +03:00
luci: service: Rewrite func serviceActionEx
This commit is contained in:
@@ -148,6 +148,13 @@ return baseclass.extend({
|
||||
ui.addNotification(null, E('p', _('Service action failed "%s %s": %s').format(name, action, e)));
|
||||
});
|
||||
},
|
||||
|
||||
checkUnsavedChanges: function()
|
||||
{
|
||||
if (!ui.changes) return false;
|
||||
if (!ui.changes.changes) return false;
|
||||
return ui.changes.changes[this.appName] ? true : false;
|
||||
},
|
||||
|
||||
normalizeValue: function(v) {
|
||||
return (v && typeof(v) === 'string') ? v.trim().replace(/\r?\n/g, '') : v;
|
||||
|
||||
Reference in New Issue
Block a user