Changeset 695 for trunk


Ignore:
Timestamp:
01/23/07 18:32:07 (13 years ago)
Author:
ray
Message:

add the option to provide the url to Xinha._loadlang()

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r688 r695  
    50615061{ 
    50625062  var url, lang; 
     5063  if (typeof context == 'object' && context.url) 
     5064  { 
     5065    url = context.url + _editor_lang + ".js"; 
     5066    context = context.context; 
     5067  } 
    50635068  if ( typeof _editor_lcbackend == "string" ) 
    50645069  { 
     
    50685073    url = url.replace(/%context%/, context); 
    50695074  } 
    5070   else 
     5075  else if (!url) 
    50715076  { 
    50725077    //use internal files 
  • trunk/modules/FullScreen/full-screen.js

    r694 r695  
    4040 
    4141FullScreen.prototype._lc = function(string) { 
    42     return HTMLArea._lc(string, 'FullScreen'); 
     42    return HTMLArea._lc(string, {url : _editor_url + 'modules/FullScreen/lang/'}); 
    4343}; 
    4444 
Note: See TracChangeset for help on using the changeset viewer.