diff --git a/static/js/helpDialog.js b/static/js/helpDialog.js index 0dea1ba3..0b2ee553 100644 --- a/static/js/helpDialog.js +++ b/static/js/helpDialog.js @@ -99,12 +99,10 @@ pandora.ui.helpDialog = function() { }); $text = Ox.Element() - .addClass('OxTextPage') + .addClass('OxTextPage OxSelectable') .css({ padding: '16px', - overflowY: 'scroll', - MozUserSelect: 'text', - WebkitUserSelect: 'text' + overflowY: 'scroll' }); $panel = Ox.SplitPanel({ diff --git a/static/js/infoView.0xdb.js b/static/js/infoView.0xdb.js index 29f90abe..190d11f3 100644 --- a/static/js/infoView.0xdb.js +++ b/static/js/infoView.0xdb.js @@ -11,9 +11,7 @@ pandora.ui.infoView = function(data) { canSeeAllMetadata = pandora.user.level != 'guest', css = { marginTop: '4px', - textAlign: 'justify', - MozUserSelect: 'text', - WebkitUserSelect: 'text' + textAlign: 'justify' }, iconRatio = ui.icons == 'posters' ? ( ui.showSitePosters ? pandora.site.posters.ratio : data.posterRatio @@ -246,9 +244,7 @@ pandora.ui.infoView = function(data) { .css({ marginBottom: '-3px', fontWeight: 'bold', - fontSize: '13px', - MozUserSelect: 'text', - WebkitUserSelect: 'text' + fontSize: '13px' }) .bindEvent({ submit: function(event) { @@ -279,9 +275,7 @@ pandora.ui.infoView = function(data) { .css({ marginBottom: '-3px', fontWeight: 'bold', - fontSize: '13px', - MozUserSelect: 'text', - WebkitUserSelect: 'text' + fontSize: '13px' }) .bindEvent({ submit: function(event) { @@ -296,6 +290,7 @@ pandora.ui.infoView = function(data) { if (isEditable) { var $div = $('
').append($('').css({
- margin: '16px',
- MozUserSelect: 'text',
- WebkitUserSelect: 'text'
- }).text(value.text)),
+ content: $('').append(
+ $('')
+ .addClass('OxSelectable')
+ .css({margin: '16px'})
+ .text(value.text)
+ ),
height: height - 48,
keys: {enter: 'close', escape: 'close'},
maximizeButton: true,
diff --git a/static/js/news.js b/static/js/news.js
index 87d5eab2..021ad1be 100644
--- a/static/js/news.js
+++ b/static/js/news.js
@@ -72,12 +72,11 @@ pandora.ui.news = function(width, height) {
tooltip: isEditable ? pandora.getEditTooltip() : '',
value: items[index].title
})
+ .addClass('OxSelectable')
.css({
display: 'inline-block',
fontWeight: 'bold',
fontSize: '16px',
- MozUserSelect: 'text',
- WebkitUserSelect: 'text'
})
.bindEvent({
submit: function(data) {
@@ -94,11 +93,10 @@ pandora.ui.news = function(width, height) {
tooltip: isEditable ? pandora.getEditTooltip() : '',
value: items[index].date
})
+ .addClass('OxSelectable')
.css({
display: 'inline-block',
- fontSize: '9px',
- MozUserSelect: 'text',
- WebkitUserSelect: 'text'
+ fontSize: '9px'
})
.bindEvent({
submit: function(data) {
@@ -117,10 +115,7 @@ pandora.ui.news = function(width, height) {
value: items[index].text,
width: width - 512
})
- .css({
- MozUserSelect: 'text',
- WebkitUserSelect: 'text'
- })
+ .addClass('OxSelectable')
.bindEvent({
submit: function(data) {
editItem('text', data.value);
diff --git a/static/js/toolbar.js b/static/js/toolbar.js
index 908a9c0d..53730dc9 100644
--- a/static/js/toolbar.js
+++ b/static/js/toolbar.js
@@ -26,28 +26,24 @@ pandora.ui.toolbar = function() {
textAlign: 'center',
title: getListName(pandora.user.ui._list)
})
+ .addClass('OxSelectable')
.css({
position: 'absolute',
left: getListTitleLeft() + 'px',
top: '4px',
right: (ui._list ? 324 : 310) + 'px',
- width: 'auto',
- MozUserSelect: 'text',
- OUserSelect: 'text',
- WebkitUserSelect: 'text'
+ width: 'auto'
})
: pandora.$ui.itemTitle = Ox.Label({
textAlign: 'center'
})
+ .addClass('OxSelectable')
.css({
position: 'absolute',
left: '236px',
top: '4px',
right: (ui._list ? 324 : 310) + 'px',
- width: 'auto',
- MozUserSelect: 'text',
- OUserSelect: 'text',
- WebkitUserSelect: 'text'
+ width: 'auto'
})
.hide()
);