Hans Dijkema

Results 48 comments of Hans Dijkema

I understand. I looks like your making some big changes for the next release of espocrm.

If you are too early with clicking, you'll get a validation error indeed. If you click just between the disappearance of the upload message and the actual creation of the...

It didn't , sorry. Somehow in the current file.js it is possible to click update before 'setAttachment()' is called. The end result is that no relation is set. I tested...

No, it doesn't. I did this with a file of 18MB. 2020-07-23T13:22:37.894Z VM22642:76 2020-07-23T13:22:37.894Z VM22642:78 2020-07-23T13:22:37.897Z

It's somewhere during the uploading. Also, one could cancel the upload with the cross sign (![image](https://user-images.githubusercontent.com/745693/88291597-c195d800-ccf8-11ea-9202-79f0bde10966.png)) during upload. Afterwards, one cannot upload the same file, unless one clicks 'cancel' (I...

I refined my solution somewhat: ```javascript (...) searchTypeList: ['isNotEmpty', 'isEmpty'], updateLink: null, updateLinkColor: null, cancelLink: null, cancelLinkColor: null, events: { ``` ```javascript uploadFile: function (file) { this.blockUpdateLink(); var isCanceled =...

I think, somehow the 'update' trigger interferes with the uploading process and maybe the validation is not always called?

Oke. I think there's another problem with the uploading of files: ![image](https://user-images.githubusercontent.com/745693/88292649-33225600-ccfa-11ea-9e72-421673c1f3a4.png) When, using inline editing, I upload a new file and I click 'cancel', instead of 'update', I also...

I've decided to make this the workaround for the moment. So I added this code: ```javascript unblockUpdateLink: function() { if (this.updateLink !== null) { var el_update = this.updateLink; this.updateLink.css('pointer-events', 'auto');...

To prevent canceling during upload, I also added this: ```javascript var removeLink = ''; if (this.updateLink !== null) { removeLink = ''; } ```