Skip to content

Commit

Permalink
Selectable: Add default CSS for ui-selectable-helper to CSS framework…
Browse files Browse the repository at this point in the history
… to allow user override. Fixes #5607 - Selectable has helper css hardcoded in JS
  • Loading branch information
ajpiano authored and rdworth committed May 13, 2010
1 parent dc646c0 commit 05725e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions themes/base/jquery.ui.base.css
Expand Up @@ -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");
3 changes: 3 additions & 0 deletions themes/base/jquery.ui.selectable.css
@@ -0,0 +1,3 @@
/* Selectable
----------------------------------*/
.ui-selectable-helper { border:1px dotted black }
4 changes: 1 addition & 3 deletions ui/jquery.ui.selectable.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 05725e2

Please sign in to comment.