aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradam j. sontag <ajpiano@ajpiano.com>2010-05-12 14:32:14 +0800
committerRichard D. Worth <rdworth@gmail.com>2010-05-13 22:35:40 +0800
commit05725e25aea335ecb9c7cf3b03eba8ee68153fb5 (patch)
tree2ebd72f0f14093449e1193d64cbeef1e381d8fd3
parentdc646c01fe97b54e3bb486b55caacf69bd3b12ac (diff)
downloadjquery-ui-05725e25aea335ecb9c7cf3b03eba8ee68153fb5.tar.gz
jquery-ui-05725e25aea335ecb9c7cf3b03eba8ee68153fb5.zip
Selectable: Add default CSS for ui-selectable-helper to CSS framework to allow user override. Fixes #5607 - Selectable has helper css hardcoded in JS
-rw-r--r--themes/base/jquery.ui.base.css1
-rw-r--r--themes/base/jquery.ui.selectable.css3
-rw-r--r--ui/jquery.ui.selectable.js4
3 files changed, 5 insertions, 3 deletions
diff --git a/themes/base/jquery.ui.base.css b/themes/base/jquery.ui.base.css
index eed06a277..66a7c24e9 100644
--- a/themes/base/jquery.ui.base.css
+++ b/themes/base/jquery.ui.base.css
@@ -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
index 000000000..c5d46ce24
--- /dev/null
+++ b/themes/base/jquery.ui.selectable.css
@@ -0,0 +1,3 @@
+/* Selectable
+----------------------------------*/
+.ui-selectable-helper { border:1px dotted black }
diff --git a/ui/jquery.ui.selectable.js b/ui/jquery.ui.selectable.js
index ea4a20c1f..c965a3c1f 100644
--- a/ui/jquery.ui.selectable.js
+++ b/ui/jquery.ui.selectable.js
@@ -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() {