Fix DFW resizing after reaching the sanity check width, props merty, fixes #17983 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@18399 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2011-07-05 07:03:26 +00:00
parent 4e3b568f1b
commit 576466e544
3 changed files with 6 additions and 4 deletions

View File

@ -246,11 +246,13 @@ PubSub.prototype.publish = function( topic, args ) {
return;
}
w = n + w;
if ( w < 200 || w > 1200 ) // sanity check
return;
el.width( n + w );
setUserSetting('dfw_width', n + w);
el.width( w );
setUserSetting('dfw_width', w);
}
ps.subscribe( 'showToolbar', function() {

File diff suppressed because one or more lines are too long

View File

@ -96,7 +96,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'editor', "/wp-admin/js/editor$suffix.js", array('utils','jquery'), '20110411' );
$scripts->add_data( 'editor', 'group', 1 );
$scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), '20110610' );
$scripts->add( 'wp-fullscreen', "/wp-admin/js/wp-fullscreen$suffix.js", array('jquery'), '20110704' );
$scripts->add_data( 'wp-fullscreen', 'group', 1 );
$scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6.1');