thomascube
2007-05-17 258f1e544ba3c485fca920e625bdcb08c4deb17b
program/js/app.js
@@ -170,7 +170,7 @@
          {
          this.enable_command('compose', 'add-contact', false);
          parent.rcmail.show_contentframe(true);
          parent.rcmail.mark_message('read', this.uid);
          parent.rcmail.mark_message('read', this.env.uid);
          }
        if ((this.env.action=='show' || this.env.action=='preview') && this.env.blockedobjects)
@@ -245,14 +245,13 @@
        this.set_page_buttons();
        
        var writeable;
        if ((writeable = this.env.address_sources && !this.env.address_sources[this.env.source].readonly))
        if (this.env.address_sources && !this.env.address_sources[this.env.source].readonly)
          this.enable_command('add', true);
        
        if (this.env.cid)
          this.enable_command('show', 'edit', true);
        if ((this.env.action=='add' || this.env.action=='edit') && writeable && this.gui_objects.editform)
        if ((this.env.action=='add' || this.env.action=='edit') && this.gui_objects.editform)
          this.enable_command('save', true);
        else
          this.enable_command('search', 'reset-search', 'moveto', true);
@@ -969,7 +968,7 @@
      this.display_message(msg, 'loading', true);
      }
    else if (!a && this.busy)
    else if (!a)
      this.hide_message();
    this.busy = a;