Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Remove obsolete JavaScript. #168
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrommen committed Dec 22, 2015
1 parent fc8543c commit 503da60
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 74 deletions.
36 changes: 0 additions & 36 deletions resources/js/admin/advanced_translator.js

This file was deleted.

37 changes: 0 additions & 37 deletions src/assets/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,43 +437,6 @@
MultilingualPress.registerModule( 'options-general.php', 'UserBackendLanguage', UserBackendLanguage );
})();

;( function( $ ) {
"use strict";

var advanced_translator = {

init: function() {
this.meta_box_init();
this.meta_box_toggle_switch();
},

meta_box_init: function() {
$( '.to_translate' ).hide();

$( 'input.do_translate[checked]' ).each( function() {
var data = $( this ).attr( 'data' );

$( '.translate_' + data ).toggle();
$( '#content_' + data + '_ifr' ).height( 400 );
} );
},

meta_box_toggle_switch: function() {
$( '.do_translate' ).on( 'click', function() {
var data = $( this ).attr( 'data' );

$( '.translate_' + data ).toggle( 'slow' );
$( '#content_' + data + '_ifr' ).height( 400 );
} );
}
};

$( function() {
advanced_translator.init();
} );

} )( jQuery );

/* global ajaxurl, mlpRelationshipControlL10n */
;( function( $, mlpL10n ) {
"use strict";
Expand Down
2 changes: 1 addition & 1 deletion src/assets/js/admin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 503da60

Please sign in to comment.