Created
December 7, 2016 13:35
-
-
Save pranali333/7cc311f7814a57d2162a21883ad9ac9f to your computer and use it in GitHub Desktop.
Prevent text "Select your files" changing to "Add more files" while uploading media
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
jQuery( 'document' ).ready( function( $ ) { | |
rtMediaHook.register( 'rtmedia_js_after_files_added', function() { | |
jQuery( ".rtmedia-uploader-div #rtmedia-uploader-form #rtMedia-upload-button" ).val( 'Select your files' ); | |
return true; | |
} ); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment