mail_list_read.js 655 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/* ------------------------------------------------------------------------------
*
*  # Inbox page - Reading
*
*  Specific JS code additions for mail_list_read.html page
*
*  Version: 1.0
*  Latest update: Dec 5, 2016
*
* ---------------------------------------------------------------------------- */

$(function() {


    // Grab first letter from sender name and add it to avatar
    // ------------------------------

    // Title
    var $title = $('.letter-icon-title'),
        letter = $title.eq(0).text().charAt(0).toUpperCase();

    // Icon
    var $icon = $title.parent().parent().find('.letter-icon');
        $icon.eq(0).text(letter);

});