github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-ui

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 832
    • 188
  • Source
  • Commits
  • Network (188)
  • Graphs
  • Tree: 517d5ab

click here to add a description

click here to add a homepage

  • Switch Branches (8)
    • bind
    • devpreview
    • formcontrols
    • master
    • menu
    • panel
    • tooltip
    • widget-super
  • Switch Tags (19)
    • 1.9m2
    • 1.9m1
    • 1.8rc3
    • 1.8rc2
    • 1.8rc1
    • 1.8b1
    • 1.8a2
    • 1.8a1
    • 1.8.2
    • 1.8.1
    • 1.8
    • 1.7
    • 1.6rc6
    • 1.6rc5
    • 1.6rc3
    • 1.6rc2
    • 1.6
    • 1.5.2
    • 1.5.1
  • Comments
  • Contributors
Sending Request…

The official jQuery user interface library. — Read more

  Cancel

http://jqueryui.com/

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

resizable: add ui-resizable-resizing class during resize
rdworth (author)
Sat Feb 28 13:23:19 -0800 2009
commit  517d5ab62ca98da1eb2e
tree    7517db16b3d369432966
parent  df8d64a36a3e68c086cc
M ui/ui.resizable.js 5 •••••
Txt ui/ui.resizable.js
  • View file @ 517d5ab
... ...
@@ -177,7 +177,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
177 177
     this._mouseDestroy();
178 178
 
179 179
     var _destroy = function(exp) {
180  
-      $(exp).removeClass("ui-resizable ui-resizable-disabled")
  180
+      $(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing")
181 181
         .removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
182 182
     };
183 183
 
... ...
@@ -252,6 +252,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
252 252
       var cursor = $('.ui-resizable-' + this.axis).css('cursor');
253 253
       $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
254 254
 
  255
+    el.addClass("ui-resizable-resizing");
255 256
     this._propagate("start", event);
256 257
     return true;
257 258
   },
... ...
@@ -315,6 +316,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
315 316
 
316 317
     $('body').css('cursor', 'auto');
317 318
 
  319
+    this.element.removeClass("ui-resizable-resizing");
  320
+
318 321
     this._propagate("stop", event);
319 322
 
320 323
     if (this._helper) this.helper.remove();

0 notes on commit 517d5ab

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
  • English
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文