From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/cluster validate_config_gulm.js
Date: 22 Jan 2007 21:19:29 -0000 [thread overview]
Message-ID: <20070122211929.20164.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-01-22 21:19:29
Added files:
luci/cluster : validate_config_gulm.js
Log message:
GULM properties
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_config_gulm.js.diff?cvsroot=cluster&r1=NONE&r2=1.1
/cvs/cluster/conga/luci/cluster/validate_config_gulm.js,v --> standard output
revision 1.1
--- conga/luci/cluster/validate_config_gulm.js
+++ - 2007-01-22 21:19:29.438683000 +0000
@@ -0,0 +1,23 @@
+function validate_form(form) {
+ var errors = new Array();
+ var lscount = 0;
+
+ var elem = form.getElementsByTagName('input');
+ for (var i = 0 ; i < elem.length ; i++) {
+ if (elem[i].type != 'checkbox')
+ continue;
+ if (elem[i].checked)
+ lscount++;
+ }
+
+ if (lscount != 1 && lscount != 3 && lscount != 4 && lscount != 5)
+ errors.push('You must have exactly 1, 3, 4, or 5 GULM lockservers.');
+
+ if (error_dialog(errors))
+ return (-1);
+
+ if (confirm('Update GULM properties?'))
+ form.submit();
+
+ return (0);
+}
reply other threads:[~2007-01-22 21:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070122211929.20164.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.