All of lore.kernel.org
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/storage storage_probing.js storage_ ...
Date: 22 Oct 2007 19:49:06 -0000	[thread overview]
Message-ID: <20071022194906.22079.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	rmccabe at sourceware.org	2007-10-22 19:49:06

Modified files:
	luci/storage   : storage_probing.js storage_utils.js 
	                 storage_validation.js 

Log message:
	Fix browser issues with FF2 and IE on Windows

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/storage_probing.js.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/storage_utils.js.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/storage_validation.js.diff?cvsroot=cluster&r1=1.2&r2=1.3

--- conga/luci/storage/storage_probing.js	2007/09/25 22:47:05	1.2
+++ conga/luci/storage/storage_probing.js	2007/10/22 19:49:06	1.3
@@ -8,15 +8,7 @@
 */
 
 function strip_left(txt) {
-	for (var i = 0 ; i < txt.length ; i++) {
-		if (txt[i] == ' ' || txt[i] == '\n' ||
-			txt[i] == '\r' || txt[i] == '\t')
-		{
-			continue;
-		}
-		return txt.substr(i);
-	}
-	return txt;
+	return(res_txt.replace(/^\s+/g, ""));
 }
 
 function cache_report_callback() {
@@ -25,10 +17,10 @@
 		var list_URL = (window.location + '').substr(0, i);
 
 		if (xmlHttp_object.status == 200) {
-			res = xmlHttp_object.responseText;
+			var res = xmlHttp_object.responseText;
 			res = strip_left(res);
 			if (res.substr(0, 2) == "OK") {
-				window.location.reload();
+				window.location = window.location;
 			} else {
 				alert('An error has occured while probing storage:\n\n' + res);
 				window.location = list_URL;
--- conga/luci/storage/storage_utils.js	2007/09/26 21:36:08	1.3
+++ conga/luci/storage/storage_utils.js	2007/10/22 19:49:06	1.4
@@ -8,15 +8,7 @@
 */
 
 function strip_left(txt) {
-	for (var i = 0 ; i < txt.length ; i++) {
-		if (txt[i] == ' ' || txt[i] == '\n' ||
-			txt[i] == '\r' || txt[i] == '\t')
-		{
-			continue;
-		}
-		return txt.substr(i);
-	}
-	return txt;
+	return(res_txt.replace(/^\s+/g, ""));
 }
 
 function check_batch_callback() {
--- conga/luci/storage/storage_validation.js	2007/09/25 22:47:05	1.2
+++ conga/luci/storage/storage_validation.js	2007/10/22 19:49:06	1.3
@@ -304,15 +304,7 @@
 }
 
 function strip_left(txt) {
-	for (var i = 0 ; i < txt.length ; i++) {
-		if (txt[i] == ' ' || txt[i] == '\n' ||
-			txt[i] == '\r' || txt[i] == '\t')
-		{
-			continue;
-		}
-		return txt.substr(i);
-	}
-	return txt;
+	return(res_txt.replace(/^\s+/g, ""));
 }
 
 // Apply is a button, other ones are submits



                 reply	other threads:[~2007-10-22 19:49 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=20071022194906.22079.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.