From 01319d270457a97b5f666988cf1577d0fcb76067 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 13 Jan 2015 13:25:12 +0000 Subject: [PATCH] Bind hover handler in file upload widget on input element as input always is on top and transparent --- etemplate/js/et2_widget_file.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/etemplate/js/et2_widget_file.js b/etemplate/js/et2_widget_file.js index f0916dd935..4dd92f93ad 100644 --- a/etemplate/js/et2_widget_file.js +++ b/etemplate/js/et2_widget_file.js @@ -490,12 +490,11 @@ var et2_file = et2_inputWidget.extend( this.progress.addClass("progress_dropDown_fileList"); //Add uploading indicator and bind hover handler on it - jQuery(this.node).find('span') - .addClass('totalProgress_loader') - .hover(function(){ + jQuery(this.node).find('span').addClass('totalProgress_loader'); + + jQuery(this.node).find('input').hover(function(){ jQuery('.progress_dropDown_fileList').show(); }); - //Bind click handler to dismiss the dropdown while uploading jQuery('body').on('click', function(event){ if (event.target.className != 'remove')