]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectable: Add default CSS for ui-selectable-helper to CSS framework to allow user...
authoradam j. sontag <ajpiano@ajpiano.com>
Wed, 12 May 2010 06:32:14 +0000 (14:32 +0800)
committerRichard D. Worth <rdworth@gmail.com>
Thu, 13 May 2010 14:35:40 +0000 (22:35 +0800)
themes/base/jquery.ui.base.css
themes/base/jquery.ui.selectable.css [new file with mode: 0644]
ui/jquery.ui.selectable.js

index eed06a2772f53a64c58b08ed485a32a5887ba2cb..66a7c24e93bfadc091d5f66d238169dc91a47f01 100644 (file)
@@ -7,5 +7,6 @@
 @import url("jquery.ui.dialog.css");
 @import url("jquery.ui.progressbar.css");
 @import url("jquery.ui.resizable.css");
+@import url("jquery.ui.selectable.css");
 @import url("jquery.ui.slider.css");
 @import url("jquery.ui.tabs.css");
diff --git a/themes/base/jquery.ui.selectable.css b/themes/base/jquery.ui.selectable.css
new file mode 100644 (file)
index 0000000..c5d46ce
--- /dev/null
@@ -0,0 +1,3 @@
+/* Selectable
+----------------------------------*/
+.ui-selectable-helper { border:1px dotted black }
index ea4a20c1f83bebac2a77a4ca1b96ba88cf801a17..c965a3c1f8a4d6960d284548e81462dd74ac685c 100644 (file)
@@ -57,9 +57,7 @@ $.widget("ui.selectable", $.ui.mouse, {
 
                this._mouseInit();
 
-               this.helper = $(document.createElement('div'))
-                       .css({border:'1px dotted black'})
-                       .addClass("ui-selectable-helper");
+               this.helper = $("<div class='ui-selectable-helper'>");
        },
 
        destroy: function() {