Changeset 495


Ignore:
Timestamp:
08/09/2010 02:02:12 AM (18 months ago)
Author:
ofer
Message:

An escaping bug escaped at the backend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/js/transposhadmin.js

    r486 r495  
    3333    curr_pair += 1; 
    3434    jQuery("#progress_bar").progressbar('value', curr_pair / pair_count * 100); 
    35     jQuery('#p').text('(' + lang + ') ' + jQuery("<div>" + translation + "</div>").text()); 
     35    jQuery('#p').text('(' + lang + ') ' + translation); 
    3636    if (curr_pair === pair_count) { 
    3737        jQuery("#tr_loading").data("done", true); 
     
    4141// batch items for posting to server.. nice touch added for different sources for same batch... 
    4242function ajax_translate_me(token, translation, lang, source) { 
     43    translation = jQuery("<div>" + translation + "</div>").text(); // fix some char bugs 
    4344    make_progress(translation, lang); 
    4445    // we aggregate translations together, 200ms from the last translation we will send the timer 
Note: See TracChangeset for help on using the changeset viewer.