summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js
index 3f0a4c969f..bdebf296ea 100644
--- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js
+++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js
@@ -102,6 +102,9 @@ return view.extend({
return m ? m[1] : null;
};
+ o.validate = function(section_id, value) {
+ return /^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.exec(value) ? true : _('Require a valid date in the form "YYYY-MM-DD"');
+ };
o.write = writePeriod;
o.depends('_period', 'absolute');