summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js')
-rwxr-xr-xmodules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js b/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
index a7609d3d..4e6017ef 100755
--- a/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
+++ b/modules-available/locationinfo/frontend/jquery-week-calendar/jquery.weekcalendar.js
@@ -2018,19 +2018,19 @@
* Disable text selection of the elements in different browsers
*/
_disableTextSelect: function($elements) {
- $elements.each(function() {
- if ($.browser.mozilla) {//Firefox
- $(this).css('MozUserSelect', 'none');
- } else if ($.browser.msie) {//IE
- $(this).bind('selectstart', function() {
- return false;
- });
- } else {//Opera, etc.
- $(this).mousedown(function() {
- return false;
- });
- }
- });
+ $elements.each(function() {
+ $(this).attr('unselectable', 'on')
+ .css({
+ '-moz-user-select': '-moz-none',
+ '-moz-user-select': 'none',
+ '-o-user-select': 'none',
+ '-khtml-user-select': 'none', /* you could also put this in a class */
+ '-webkit-user-select': 'none',/* and add the CSS class here instead */
+ '-ms-user-select': 'none',
+ 'user-select': 'none'
+ }).bind('selectstart', function () { return false; });
+
+ });
},
/*