summaryrefslogtreecommitdiff
path: root/modules/lightbox/js/clsource_music.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lightbox/js/clsource_music.js')
-rw-r--r--modules/lightbox/js/clsource_music.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/lightbox/js/clsource_music.js b/modules/lightbox/js/clsource_music.js
index 9e641ab7d0..05da626321 100644
--- a/modules/lightbox/js/clsource_music.js
+++ b/modules/lightbox/js/clsource_music.js
@@ -827,14 +827,14 @@ var CB_Close_Win = CB_Close_Win;
if (CB_Rel.substring(0, 8) == "clearbox" &&
CB_Rel.charAt(8) == "[" &&
CB_Rel.charAt(CB_Rel.length - 1) == "]") {
- if (CB_Links[i].rel.substring(9, CB_Links[i].rel.length - 1).split(",")[0] != "clearbox") {
+ if (CB_Links[i].rel.substring(9, CB_Links[i].rel.length - 1).split(/\s*,\s*/)[0] != "clearbox") {
CB_Links[i].onclick = function () {CB_ClickIMG(this.rel.substring(9, this.rel.length - 1) + "+\\+" + this.getAttribute("href") + "+\\+" + this.getAttribute("rev"));return false;};
} else {
alert("ClearBox HIBA:\n\nClearBox galeria neve NEM lehet \"clearbox[clearbox]\"!\n(Helye: dokumentum, a " + i + ". <a> tag-en belul.)"); }
} else if (CB_Rel.substring(0, 8) == "clearbox" &&
CB_Rel.charAt(8) == "(" &&
CB_Rel.charAt(CB_Rel.length - 1) == ")") {
- if (CB_Rel.substring(9, CB_Rel.length - 1).split(", ")[2] == "click") {
+ if (CB_Rel.substring(9, CB_Rel.length - 1).split(/\s*,\s*/)[2] == "click") {
CB_Links[i].onclick = function () {CB_ClickURL(this.rel.substring(9, this.rel.length - 1) + "+\\+" + this.getAttribute("href") + "+\\+" + this.getAttribute("rev"));return false;};
} else {
CB_Links[i].onmouseover = function () {CB_ClickURL(this.rel.substring(9, this.rel.length - 1) + "+\\+" + this.getAttribute("href") + "+\\+" + this.getAttribute("rev"));return false;};
@@ -856,7 +856,7 @@ var CB_Close_Win = CB_Close_Win;
CB_SlideS.onclick = "";
CB_SlideP.onclick = "";
CB_Clicked = a.split("+\\+");
- CB_Rel = CB_Clicked[0].split(",");
+ CB_Rel = CB_Clicked[0].split(/\s*,\s*/);
if (CB_Rel[1] > 0) {
CB_SlShowTimer = parseInt(CB_Rel[1]) * 1000;
@@ -877,7 +877,7 @@ var CB_Close_Win = CB_Close_Win;
CB_Gallery.push(new Array(CB_Clicked[1], CB_Clicked[2]));
} else {
for (i = 0; i < CB_Links.length; i++) {
- if (CB_Links[i].rel.substring(9, CB_Links[i].rel.length - 1).split(",")[0] == CB_Gallery[0][0]) {
+ if (CB_Links[i].rel.substring(9, CB_Links[i].rel.length - 1).split(/\s*,\s*/)[0] == CB_Gallery[0][0]) {
var b = CB_PicDir + "blank.gif";
if (CB_Links[i].getAttribute("tnhref") == null ||
CB_Links[i].getAttribute("tnhref") == "null") {
@@ -970,7 +970,7 @@ var CB_Close_Win = CB_Close_Win;
CB_PrvNxt.display = "none";
CB_Cls.style.display = "block";
CB_Cls.onclick = function () { CB_BrBack_Close();return false; };
- CB_Rel = CB_Clicked[0].split(", ");
+ CB_Rel = CB_Clicked[0].split(/\s*,\s*/);
// alert(CB_Clicked[0] + " and " + CB_Clicked[1] + " and " + CB_Clicked[2]);
CB_SetAllPositions();
CB_ImgWidth = parseInt(CB_Rel[0]);