[svn r11046] Bugfix: .substr(-3) works in Firefox, but not in IE

skala
Bart Mollet 18 years ago
parent 5f6503a8aa
commit ef415f9830
  1. 3
      main/metadata/md_script.js

@ -552,7 +552,8 @@
function traverseKwObj(node, parlev, num) // see KWTREE_OBJECT in md_funcs function traverseKwObj(node, parlev, num) // see KWTREE_OBJECT in md_funcs
{ {
var curlev = parlev + ('00' + (num+1)).substr(-3), kwn = '', html = ''; var curlev = '00' + (num+1), kwn = '', html = '';
curlev = parlev + curlev.substr(curlev.length-3);
for (i in (names = node.n.split("_"))) for (i in (names = node.n.split("_")))
if (nn = names[i]) { KWDS_ARRAY.push(nn); kwn += ', ' + nn; } if (nn = names[i]) { KWDS_ARRAY.push(nn); kwn += ', ' + nn; }

Loading…
Cancel
Save