From 68e4df3d227c5967a8756c81bd0bfdc6bd337738 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 13 Apr 2017 08:52:01 -0600 Subject: [PATCH] Fix upload status on single uploads disappeared when upload was complete --- api/js/etemplate/et2_widget_file.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/js/etemplate/et2_widget_file.js b/api/js/etemplate/et2_widget_file.js index ac11f653b2..210d731ef0 100644 --- a/api/js/etemplate/et2_widget_file.js +++ b/api/js/etemplate/et2_widget_file.js @@ -602,6 +602,11 @@ var et2_file = (function(){ "use strict"; return et2_inputWidget.extend( else { this.options.value[key] = response.response[0].data[key]; + // If not multiple, we already destroyed the status, so re-create it + if(!this.options.multiple) + { + this.createStatus({}, file); + } if(this.progress) { jQuery("[data-file='"+name+"']",this.progress).addClass("message success");