Changeset 562 for trunk


Ignore:
Timestamp:
08/30/06 17:14:00 (13 years ago)
Author:
ray
Message:

*htmlarea.js: HTMLArea._postback allow data to be string Ticket #838
*AJAX save plugin Ticket #628

Location:
trunk
Files:
7 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r555 r562  
    61536153 
    61546154  var content = ''; 
    6155   for ( var i in data ) 
    6156   { 
    6157     content += (content.length ? '&' : '') + i + '=' + encodeURIComponent(data[i]); 
     6155  if (typeof data == 'string') 
     6156  { 
     6157    content = data; 
     6158  } 
     6159  else 
     6160  { 
     6161    for ( var i in data ) 
     6162    { 
     6163      content += (content.length ? '&' : '') + i + '=' + encodeURIComponent(data[i]); 
     6164    } 
    61586165  } 
    61596166 
Note: See TracChangeset for help on using the changeset viewer.