Attached is the fix for the Javascript commit done.
--- old/js/utils.js Sat Nov 22 03:08:34 2014
+++ new/js/utils.js Sat Nov 22 03:10:08 2014
@@ -356,5 +356,6 @@
}
function string_contains(haystack, needle) {
- return haystack.indexOf(needle) > -1;
+ var words = haystack.split(' ');
+ return words.indexOf(needle) > -1;
}
--- old/js/inserts.js Sat Nov 22 03:07:55 2014
+++ new/js/inserts.js Sat Nov 22 03:20:42 2014
@@ -162,7 +162,7 @@
event.returnValue = false;
return false;
}
- if (box && (key == 32) && (this.className == 'combo2')) {
+ if (box && (key == 32) && (string_contains(this.className, 'combo2'))) {
this.style.display = 'none';
box.style.display = 'inline';
box.value='';
@@ -276,11 +276,11 @@
if(e.onfocus==undefined) {
e.onfocus = function() {
save_focus(this);
- if (this.className == 'combo' || this.className == 'combo3')
+ if (string_contains(this.className, 'combo') || string_contains(this.className, 'combo3'))
this.select();
};
}
- if (e.className == 'combo' || e.className == 'combo2' || e.className == 'combo3') {
+ if (string_contains(e.className, 'combo') || string_contains(e.className, 'combo2') || string_contains(e.className, 'combo3')) {
_set_combo_input(e);
}
else
@@ -289,7 +289,7 @@
ev = ev||window.event;
key = ev.keyCode||ev.which;
if(key == 13) {
- if(e.className == 'searchbox') e.onblur();
+ if(string_contains(e.className, 'searchbox')) e.onblur();
return false;
}
return true;
@@ -443,10 +443,10 @@
}
}
// prevent unneeded transaction entry abortion
- if (e.className == 'shortcut'
- || e.className == 'menu_option'
- || e.className == 'menu_tab'
- || e.className == 'selected')
+ if (string_contains(e.className, 'shortcut')
+ || string_contains(e.className, 'menu_option')
+ || string_contains(e.className, 'menu_tab')
+ || string_contains(e.className, 'selected'))
e.onclick = function(ev) {
if (_validate._processing
&& _validate._modified
Post's attachmentsFixed_js_patch.zip 11.1 kb, file has never been downloaded.
You don't have the permssions to download the attachments of this post.