conga/luci cluster/form-chooser cluster/form-m ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-09-25 22:47:05
Modified files:
luci/cluster : form-chooser form-macros resource-form-macros
luci/homebase : form-chooser form-macros luci_homebase.css luci/plone-custom: sys_svc.css
luci/storage : cylinder_select.js form-macros
storage_probing.js storage_utils.js storage_validation.js validate_html
Log message:
More cleanup and fix some javascript bugs
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-chooser.diff?cvsroot=cluster&r1=1.19&r2=1.20
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.213&r2=1.214
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&r1=1.42&r2=1.43
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/form-chooser.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/form-macros.diff?cvsroot=cluster&r1=1.61&r2=1.62
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/homebase/luci_homebase.css.diff?cvsroot=cluster&r1=1.43&r2=1.44
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/sys_svc.css.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/cylinder_select.js.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/form-macros.diff?cvsroot=cluster&r1=1.28&r2=1.29
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/storage_probing.js.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/storage_utils.js.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/storage_validation.js.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/validate_html.diff?cvsroot=cluster&r1=1.6&r2=1.7
luci/cluster/form-chooser +9 -0
@@ -1,3 +1,12 @@ +<tal:comment tal:replace="nothing"> +** Copyright (C) 2006-2007 Red Hat, Inc. +** +** This program is free software; you can redistribute +** it and/or modify it under the terms of version 2 of the +** GNU General Public License as published by the +** Free Software Foundation. +</tal:comment> + <html> <head> <title tal:content="string:"></title>
luci/cluster/form-macros +9 -0
@@ -1,3 +1,12 @@ +<tal:comment tal:replace="nothing"> +** Copyright (C) 2006-2007 Red Hat, Inc. +** +** This program is free software; you can redistribute +** it and/or modify it under the terms of version 2 of the +** GNU General Public License as published by the +** Free Software Foundation. +</tal:comment> + <html> <head>
luci/cluster/resource-form-macros +9 -0
@@ -1,3 +1,12 @@ +<tal:comment tal:replace="nothing"> +** Copyright (C) 2006-2007 Red Hat, Inc. +** +** This program is free software; you can redistribute +** it and/or modify it under the terms of version 2 of the +** GNU General Public License as published by the +** Free Software Foundation. +</tal:comment> + <html> <head> <title tal:content="template/title">The title</title>
luci/homebase/form-chooser +9 -0
@@ -1,3 +1,12 @@ +<tal:comment tal:replace="nothing"> +** Copyright (C) 2006-2007 Red Hat, Inc. +** +** This program is free software; you can redistribute +** it and/or modify it under the terms of version 2 of the +** GNU General Public License as published by the +** Free Software Foundation. +</tal:comment> + <html> <head>
luci/homebase/form-macros +9 -0
@@ -1,3 +1,12 @@ +<tal:comment tal:replace="nothing"> +** Copyright (C) 2006-2007 Red Hat, Inc. +** +** This program is free software; you can redistribute +** it and/or modify it under the terms of version 2 of the +** GNU General Public License as published by the +** Free Software Foundation. +</tal:comment> + <html> <head>
luci/homebase/luci_homebase.css +9 -0
@@ -1,3 +1,12 @@ +/* +** Copyright (C) 2006-2007 Red Hat, Inc. +** +** This program is free software; you can redistribute +** it and/or modify it under the terms of version 2 of the +** GNU General Public License as published by the +** Free Software Foundation. +*/ + input[type=text], input[type=password] { padding: .2em ! important; font-family: "Bitstream Vera Sans Mono", "DejaVu Sans Mono", monospace;
luci/plone-custom/sys_svc.css +9 -0
@@ -1,3 +1,12 @@ +/* +** Copyright (C) 2007 Red Hat, Inc. +** +** This program is free software; you can redistribute +** it and/or modify it under the terms of version 2 of the +** GNU General Public License as published by the +** Free Software Foundation. +*/ + input[type=image] { border: 0; background: transparent;
luci/storage/cylinder_select.js +5 -5
@@ -58,12 +58,12 @@ } } - parent = top.document.getElementById(properties_span_id); + var parent_elem = top.document.getElementById(properties_span_id); - for (var i = 0 ; i < parent.childNodes.length ; i++) { - var item = parent.childNodes[i]; + for (var i = 0 ; i < parent_elem.childNodes.length ; i++) { + var item = parent_elem.childNodes[i]; var item_type = item.nodeName.toLowerCase(); - if (item_type == 'span' || item.type == 'div') { + if (item_type == 'span' || item_type == 'div') { if (item.id == current_selection) { item.className = 'visible'; } else if (item.className == 'visible') {
@@ -86,7 +86,7 @@ var id = elem[0]; var beg = elem[1][0]; var end = elem[1][1]; - if (x > beg && x < end) { + if (x >= beg && x <= end) { select_subcyl(id, h_data); } }
luci/storage/form-macros +351 -375
814 lines not on this page · raw message
luci/storage/storage_probing.js +3 -1
@@ -9,7 +9,9 @@ function strip_left(txt) { for (var i = 0 ; i < txt.length ; i++) { - if (txt[i] == " " || txt[i] == "\n") { + if (txt[i] == ' ' || txt[i] == '\n' || + txt[i] == '\r' || txt[i] == '\t') + { continue; } return txt.substr(i);
luci/storage/storage_utils.js +3 -1
@@ -9,7 +9,9 @@ function strip_left(txt) { for (var i = 0 ; i < txt.length ; i++) { - if (txt[i] == " " || txt[i] == "\n") { + if (txt[i] == ' ' || txt[i] == '\n' || + txt[i] == '\r' || txt[i] == '\t') + { continue; } return txt.substr(i);
luci/storage/storage_validation.js +4 -2
@@ -305,7 +305,9 @@ function strip_left(txt) { for (var i = 0 ; i < txt.length ; i++) { - if (txt[i] == " " || txt[i] == "\n") { + if (txt[i] == ' ' || txt[i] == '\n' || + txt[i] == '\r' || txt[i] == '\t') + { continue; } return txt.substr(i);
@@ -346,7 +348,7 @@ } } - alert(err_msg); + alert(err_msg || 'An unknown error occurred'); } } else { alert("Error retrieving data from server");
luci/storage/validate_html +1 -1
@@ -31,7 +31,7 @@ <tal:block tal:condition="access_to_host_allowed"> <span tal:condition="python:action_type == 'Validate'" - tal:content="python:here.validate(storage_report, request)" /> + tal:replace="python:here.validate(storage_report, request)" /> <tal:block tal:condition="python:action_type != 'Validate'"> This form is to be used for validation only