Aleksander Machniak
2014-04-18 e1e65c49803e5236a7b6e9527b90e5a894b02281
Fix redundant alert message on over-size uploads (#1489817)
2 files modified
21 ■■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/js/app.js 20 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -9,6 +9,7 @@
- Fix lack of translation of special folders in some configurations (#1489799)
- Fix XSS issue in plain text spellchecker (#1489806)
- Fix invalid page title for some folders (1489804)
- Fix redundant alert message on over-size uploads (#1489817)
RELEASE 1.0.0
-------------
program/js/app.js
@@ -1054,8 +1054,9 @@
        // Reset the auto-save timer
        clearTimeout(this.save_timer);
        if (!this.upload_file(props || this.gui_objects.uploadform, 'upload')) {
          alert(this.get_label('selectimportfile'));
        if (!(flag = this.upload_file(props || this.gui_objects.uploadform, 'upload'))) {
          if (flag !== false)
            alert(this.get_label('selectimportfile'));
          aborted = true;
        }
        break;
@@ -1179,12 +1180,15 @@
        break;
      case 'import-messages':
        var form = props || this.gui_objects.importform;
        var importlock = this.set_busy(true, 'importwait');
        var form = props || this.gui_objects.importform,
          importlock = this.set_busy(true, 'importwait');
        $('input[name="_unlock"]', form).val(importlock);
        if (!this.upload_file(form, 'import')) {
        if (!(flag = this.upload_file(form, 'import'))) {
          this.set_busy(false, null, importlock);
          alert(this.get_label('selectimportfile'));
          if (flag !== false)
            alert(this.get_label('selectimportfile'));
          aborted = true;
        }
        break;
@@ -3973,7 +3977,7 @@
  this.upload_file = function(form, action)
  {
    if (!form)
      return false;
      return;
    // count files and size on capable browser
    var size = 0, numfiles = 0;
@@ -4033,8 +4037,6 @@
      this.gui_objects.attachmentform = form;
      return true;
    }
    return false;
  };
  // add file name to attachment list