芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/cansahcab.gob.mx/media/vendor/debugbar/widgets/mails/widget.js
(function($) { var csscls = PhpDebugBar.utils.makecsscls('phpdebugbar-widgets-'); /** * Widget for the displaying mails data * * Options: * - data */ var MailsWidget = PhpDebugBar.Widgets.MailsWidget = PhpDebugBar.Widget.extend({ className: csscls('mails'), render: function() { this.$list = new PhpDebugBar.Widgets.ListWidget({ itemRenderer: function(li, mail) { $('
').addClass(csscls('subject')).text(mail.subject).appendTo(li); $('
').addClass(csscls('to')).text(mail.to).appendTo(li); if (mail.headers) { var headers = $('
').addClass(csscls('headers')).appendTo(li); $('
').text(mail.headers).appendTo(headers); li.click(function() { if (headers.is(':visible')) { headers.hide(); } else { headers.show(); } }); } }}); this.$list.$el.appendTo(this.$el); this.bindAttr('data', function(data) { this.$list.set('data', data); }); } }); })(PhpDebugBar.$);