Selectable: Add default CSS for ui-selectable-helper to CSS framework to allow user override. Fixes #5607 - Selectable has helper css hardcoded in JS

This commit is contained in:
adam j. sontag 2010-05-12 14:32:14 +08:00 committed by Richard D. Worth
parent dc646c01fe
commit 05725e25ae
3 changed files with 5 additions and 3 deletions

View 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");

3
themes/base/jquery.ui.selectable.css vendored Normal file
View File

@ -0,0 +1,3 @@
/* Selectable
----------------------------------*/
.ui-selectable-helper { border:1px dotted black }

View 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() {