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:
ryan 2009-03-27 22:58:53 +00:00
parent 72a58f8025
commit e24a341f0b
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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."),