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:41:03 +00:00
parent 539477a0e3
commit 29666faaeb

View File

@ -489,12 +489,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')