Skip to content

Instantly share code, notes, and snippets.

@pranali333
Created December 7, 2016 13:35
Show Gist options
  • Save pranali333/7cc311f7814a57d2162a21883ad9ac9f to your computer and use it in GitHub Desktop.
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
<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