thomascube
2008-06-14 62e43d2c1a61d26f9a07419f7155a2881cb57332
program/js/app.js
@@ -185,7 +185,7 @@
          {
          if (this.gui_objects.remoteobjectsmsg)
            this.gui_objects.remoteobjectsmsg.style.display = 'block';
          this.enable_command('load-images', true);
          this.enable_command('load-images', 'always-load', true);
          }
        if (this.env.action=='compose')
@@ -705,6 +705,13 @@
        this.mark_message(flag, uid);
        break;
        
      case 'always-load':
        if (this.env.uid && this.env.sender) {
          this.add_contact(urlencode(this.env.sender));
          window.setTimeout(function(){ ref.command('load-images'); }, 300);
          break;
        }
      case 'load-images':
        if (this.env.uid)
          this.show_message(this.env.uid, true, this.env.action=='preview');