~chroot64bit/zivios/gentoo-experimental

« back to all changes in this revision

Viewing changes to web/public/scripts/dojo/number.js

  • Committer: Mustafa A. Hashmi
  • Date: 2008-12-04 13:32:21 UTC
  • Revision ID: mhashmi@zivios.org-20081204133221-0nd1trunwevijj38
Inclusion of new installation framework with ties to zend layout and dojo layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
 
334
334
        if(isCurrency){
335
335
                // substitute the currency symbol for the placeholder in the pattern
336
 
                re = re.replace(/(\s*)(\u00a4{1,3})(\s*)/g, function(match, before, target, after){
 
336
                re = re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g, function(match, before, target, after){
337
337
                        var prop = ["symbol", "currency", "displayName"][target.length-1];
338
338
                        var symbol = dojo.regexp.escapeString(options[prop] || options.currency || "");
339
 
                        before = before ? "\\s" : "";
340
 
                        after = after ? "\\s" : "";
 
339
                        before = before ? "[\\s\\xa0]" : "";
 
340
                        after = after ? "[\\s\\xa0]" : "";
341
341
                        if(!options.strict){
342
342
                                if(before){before += "*";}
343
343
                                if(after){after += "*";}