-I am customizing a plugin and I have to add a processing icon(button-loader.gif) while image uploading.
-I customized the plugin and every thing was working fine on Firefox.
-But when I tried on Chrome button-loader.gif is not showing while image uploading.
-Here is the div in my php file which shows loader:
<div class="wdm-uploading">
<img src="<?php echo plugins_url('/images/button-loader.gif', __FILE__); ?>" />
</div>
-CSS file content:
.wdm-uploading {
display: none;
}
-In my .js file I am showing div when file upload initiates and I hide it when upload completes.
jQuery(curr_img + " + .wdm-uploading").hide();
jQuery(curr_img + " + .wdm-uploading").show();
-I ran same above jQuery from Chrome console, It's working. But not working in Chrome screen.
I repeat it works on Firefox and on Chrome console, but not in Chrome browser screen.
Can anybody tell me why it is happening?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire