mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
Bind to submit event. Bump script loader.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
72a58f8025
commit
e24a341f0b
@ -123,6 +123,11 @@ screenOptions = {
|
||||
var value = $(this).val();
|
||||
screenOptions.save_screen_option(option, value);
|
||||
});
|
||||
$('.screen-option').submit(function() {
|
||||
var option = $(this).map(function() { return this.id; }).get();
|
||||
var value = $(this).val();
|
||||
screenOptions.save_screen_option(option, value);
|
||||
});
|
||||
},
|
||||
|
||||
save_screen_option : function (option, value) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -60,7 +60,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20090102' );
|
||||
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20090203' );
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20090327' );
|
||||
$scripts->add_data( 'common', 'group', 1 );
|
||||
$scripts->localize( 'common', 'commonL10n', array(
|
||||
'warnDelete' => __("You are about to delete the selected items.\n 'Cancel' to stop, 'OK' to delete."),
|
||||
|
Loading…
Reference in New Issue
Block a user