Bind hover handler in file upload widget on input element as input always is on top and transparent

This commit is contained in:
Hadi Nategh 2015-01-13 13:25:12 +00:00
parent 1ad841f9d8
commit 01319d2704

View File

@ -490,12 +490,11 @@ var et2_file = et2_inputWidget.extend(
this.progress.addClass("progress_dropDown_fileList"); this.progress.addClass("progress_dropDown_fileList");
//Add uploading indicator and bind hover handler on it //Add uploading indicator and bind hover handler on it
jQuery(this.node).find('span') jQuery(this.node).find('span').addClass('totalProgress_loader');
.addClass('totalProgress_loader')
.hover(function(){ jQuery(this.node).find('input').hover(function(){
jQuery('.progress_dropDown_fileList').show(); jQuery('.progress_dropDown_fileList').show();
}); });
//Bind click handler to dismiss the dropdown while uploading //Bind click handler to dismiss the dropdown while uploading
jQuery('body').on('click', function(event){ jQuery('body').on('click', function(event){
if (event.target.className != 'remove') if (event.target.className != 'remove')