Changeset 5436 in subversion


Ignore:
Timestamp:
Nov 16, 2011 5:50:36 AM (18 months ago)
Author:
alec
Message:
  • Don't add PRE tags when switching to html mode and textarea is empty
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/app.js

    r5409 r5436  
    57395739  { 
    57405740    var lock = this.set_busy(true, 'converting'); 
    5741     $(document.getElementById(id)).val('<pre>'+plainText+'</pre>'); 
     5741    $(document.getElementById(id)).val(plainText ? '<pre>'+plainText+'</pre>' : ''); 
    57425742    this.set_busy(false, null, lock); 
    57435743  }; 
Note: See TracChangeset for help on using the changeset viewer.