You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

authres_status.js 952B

123456789101112131415161718192021222324252627
  1. /*
  2. * authres_status plugin
  3. * @author pimlie
  4. */
  5. var authres_status = {
  6. initColumn: function() {
  7. $('#rcmauthres_status span').html(' ');
  8. var li = '<label><input type="checkbox" name="list_col[]" value="authres_status" id="cols_authres_status" /> <span>'+rcmail.get_label('authres_status.column_title')+'</span></label>';
  9. $("#listoptions-columns ul.proplist").append('<li>'+li+'</li>');
  10. },
  11. insertrow: function(evt) {
  12. if (typeof(rcmail.env.authres_flags[evt.uid]) !== "undefined") {
  13. $('.fromto', evt.row.obj).prepend($('<span/>').html(rcmail.env.authres_flags[evt.uid]));
  14. }
  15. }
  16. };
  17. window.rcmail && rcmail.addEventListener('init', function(evt) {
  18. if (rcmail.env.layout == 'widescreen') {
  19. if (rcmail.gui_objects.messagelist) {
  20. rcmail.addEventListener('insertrow', authres_status.insertrow);
  21. }
  22. } else {
  23. authres_status.initColumn();
  24. }
  25. });