Dotclear

Changeset 3648:be35cfa83b8f


Ignore:
Timestamp:
01/10/18 14:44:29 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with ellips'ed cells. Thanks Thomas Zilliox for inspiration ( https://jsfiddle.net/tzi/qtqnqomL/)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r3637 r3648  
    583583          return true; 
    584584     }); 
     585 
     586     // Cope with ellipsis'ed cells 
     587     $('table .maximal').each(function() { 
     588          if (this.offsetWidth < this.scrollWidth) { 
     589               if (this.title == '') { 
     590                    this.title = this.innerText; 
     591                    $(this).addClass('ellipsis'); 
     592               } 
     593          } 
     594     }); 
     595     $('table .maximal.ellipsis a').each(function() { 
     596          if (this.title == '') { 
     597               this.title = this.innerText; 
     598          } 
     599     }) 
    585600 
    586601     // Advanced users 
Note: See TracChangeset for help on using the changeset viewer.

Sites map