From mboxrd@z Thu Jan 1 00:00:00 1970 From: shuennek@sourceware.org Date: 10 Aug 2006 19:46:10 -0000 Subject: [Cluster-devel] conga/luci/cluster resource-form-macros resour ... Message-ID: <20060810194610.32560.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: shuennek at sourceware.org 2006-08-10 19:46:09 Modified files: luci/cluster : resource-form-macros resource_form_handlers.js Log message: Finally got committs working, two updates weren't there in resource form stuff. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&r1=1.2&r2=1.3 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&r1=1.1&r2=1.2 --- conga/luci/cluster/resource-form-macros 2006/08/02 17:18:40 1.2 +++ conga/luci/cluster/resource-form-macros 2006/08/10 19:46:09 1.3 @@ -145,7 +145,7 @@
- +
@@ -160,7 +160,7 @@ global ip2 python:address[1]; global ip3 python:address[2]; global ip4 python:address[3]; - global monitor_link res/monitor_link; + global monitor_link res/attrs/monitor_link; global cluname request/clustername; tmp_URL context/cluster/index_html/absolute_url; global processURL python:tmp_URL+'?pagetype=35&clustername='+cluname+'&edit=1'"/> @@ -204,20 +204,20 @@ - +
@@ -226,6 +226,7 @@ - + - + @@ -322,12 +323,12 @@ @@ -403,12 +404,12 @@ @@ -462,11 +463,11 @@
- + NFS NFS4 - + NFS NFS4 @@ -497,9 +498,9 @@ @@ -588,7 +589,7 @@ @@ -633,7 +634,7 @@ --- conga/luci/cluster/resource_form_handlers.js 2006/07/27 16:32:46 1.1 +++ conga/luci/cluster/resource_form_handlers.js 2006/08/10 19:46:09 1.2 @@ -35,14 +35,15 @@ *down within actual cluster code.*/ function validate(form){ - if(form.resourceName.value.length == 0){ - alert("Please enter a name for this resource. \n"); - return; + if(form.type.value != 'ip'){ + if(form.resourceName.value.length == 0){ + alert("Please enter a name for this resource. \n"); + return; + } } - name = form.getAttribute("name"); /*Get the type of form from the first *part of the name string*/ - type = name.split("_")[0]; + type = form.type.value; /*use eval to access proper resource *valer function as defined below*/ eval("val"+(type.toUpperCase())+"(form);");