Permalink
Browse files

Making sortable datatableheaders unselectable

By adding unselectable='on' to SORTABLE_HEADER_TEMPLATE
and changing the css of .yui3-skin-sam .yui3-datatable-sort-liner
  • Loading branch information...
1 parent be26135 commit f4812ebc3bd187210ad2e7cb9216c3cbfd4cf361 @ItsAsbreuk committed Oct 3, 2012
@@ -54,6 +54,12 @@
position: relative;
padding-right: 15px;
position: relative;
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
}
.yui3-skin-night .yui3-datatable-sort-indicator {
@@ -14,6 +14,12 @@
position: relative;
padding-right: 15px;
position: relative;
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
}
.yui3-skin-sam .yui3-datatable-sort-indicator {
View
@@ -224,7 +224,7 @@ Y.mix(Sortable.prototype, {
@value '<div class="{className}" tabindex="0"><span class="{indicatorClass}"></span></div>'
@since 3.5.0
**/
- SORTABLE_HEADER_TEMPLATE: '<div class="{className}" tabindex="0"><span class="{indicatorClass}"></span></div>',
+ SORTABLE_HEADER_TEMPLATE: '<div class="{className}" tabindex="0" unselectable="on"><span class="{indicatorClass}"></span></div>',
/**
Reverse the current sort direction of one or more fields currently being

0 comments on commit f4812eb

Please sign in to comment.