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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-07-05 07:03:26 +00:00
parent 638d466177
commit 9d23dd8753
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');