Aleksander Machniak
2015-04-18 0f797eddd81762db824c3dd835914ada460b622b
plugins/managesieve/managesieve.js
@@ -226,7 +226,6 @@
  this.set_busy(true);
  switch (action) {
    // Delete filter row
    case 'del':
      var id = o.id, list = this.filters_list;
@@ -250,8 +249,10 @@
        $(this).unbind();
        // update row id
        if (rowid > id)
          $(this).attr('id', 'rcmrow' + (rowid-1));
        if (rowid > id) {
          this.uid = rowid - 1;
          $(this).attr('id', 'rcmrow' + this.uid);
        }
      });
      list.init();
@@ -736,6 +737,9 @@
  if (field.attr('disabled'))
    area.hide();
  // disable the original field anyway, we don't want it in POST
  else
    field.prop('disabled', true);
  field.after(area);
@@ -930,7 +934,7 @@
rcube_webmail.prototype.managesieve_create = function(force)
{
  if (!force && this.env.action != 'show' && !$('#'+this.env.contentframe).is(':visible')) {
  if (!force && this.env.action != 'show') {
    var uid = this.message_list.get_single_selection(),
      lock = this.set_busy(true, 'loading');