[CLEAN] mail: removed dead code.
authorThibault Delavallée <tde@openerp.com>
Mon, 2 Jul 2012 14:31:53 +0000 (16:31 +0200)
committerThibault Delavallée <tde@openerp.com>
Mon, 2 Jul 2012 14:31:53 +0000 (16:31 +0200)
bzr revid: tde@openerp.com-20120702143153-dv44zpmvsyphbwy1

addons/mail/static/src/css/mail.css
addons/mail/static/src/js/mail.js

index 7487497..0cf932f 100644 (file)
     clip: rect(5px, 40px, 45px, 0px);
 }
 
-/* Read more/less link */
-.openerp .oe_mail_msg_content .expand,
-.openerp .oe_mail_msg_content .reduce {
-    font-weight: bold;
-}
-
 /* ------------------------------ */
 /* Styling (should be openerp)    */
 /* ------------------------------ */
index 8e930c5..e724a8b 100644 (file)
@@ -450,20 +450,6 @@ openerp.mail = function(session) {
             return this.session.prefix + '/web/binary/image?session_id=' + this.session.session_id + '&model=' + model + '&field=' + field + '&id=' + (id || '');
         },
         
-        /**
-         * @param {String} string to truncate
-         * @param {Number} max number of chars to display 
-         * @returns {String} truncated string
-         */
-        do_truncate_string: function(string, max_length) {
-            // multiply by 1.2: prevent truncating an just too little long string
-            if (string.length <= (max_length * 1.2)) {
-                return [string, ""];
-            } else {
-                return [string.slice(0, max_length), string.slice(max_length)];
-            }
-        },
-        
         /** Removes html tags, except b, em, br */
         do_clean_text: function (string) {
             var html = $('<div/>').text(string.replace(/\s+/g, ' ')).html().replace(new RegExp('&lt;(/)?(b|em|br|br /)\\s*&gt;', 'gi'), '<$1$2>');