diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-05-27 18:41:31 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-05-27 18:41:31 +0200 |
commit | 0acaa7722956635b8f17e19cddc6f02a602b7352 (patch) | |
tree | 206a8ae0424fad40a4150b49f3ba29113bbd2cca /phpBB/assets/javascript/core.js | |
parent | 2a1925a7830157981dfbdd8b317cba5e3ca43d19 (diff) | |
parent | 7518648c2107445280eb5c30d4905c5439e69943 (diff) | |
download | forums-0acaa7722956635b8f17e19cddc6f02a602b7352.tar forums-0acaa7722956635b8f17e19cddc6f02a602b7352.tar.gz forums-0acaa7722956635b8f17e19cddc6f02a602b7352.tar.bz2 forums-0acaa7722956635b8f17e19cddc6f02a602b7352.tar.xz forums-0acaa7722956635b8f17e19cddc6f02a602b7352.zip |
Merge pull request #2469 from prototech/ticket/12155
[ticket/12155] Construct post buttons using CSS.
* prototech/ticket/12155: (21 commits)
[ticket/12155] Remove use of !important and move reddish color back to .button
[ticket/12155] Reposition the button icons to the left side while we're at it.
[ticket/12155] Get rid of line-height value causing alignment issues in FF.
[ticket/12155] Get rid of the <span> where possible and fix buttons in Safari.
[ticket/12155] Fix misplaced semicolon and ensure that value comparison works.
[ticket/12155] Combine the post and topic/PM button icons into a single sprite
[ticket/12155] Move icon class directly to <a> and use <span> consistently.
[ticket/12155] Remove star hack from padding-right property of .button.
[ticket/12155] Fix tabbing and put one selector per line if string is too long
[ticket/12155] Make opacity transition faster and fix background image paths.
[ticket/12155] Keep the selection method consistent with the one below it.
[ticket/12155] Fade out the buttons when leaving the post.
[ticket/12155] Display the buttons only when hovering the post.
[ticket/12155] Make the buttons bigger on touch devices.
[ticket/12155] Clean up icons.
[ticket/12155] Remove unused font.
[ticket/12155] Remove obsolete images.
[ticket/12155] Use the new .button class as the basis for the post buttons.
[ticket/12155] Move existing button style to a more generic class.
[ticket/12155] Remove obsolete language images.
...
Diffstat (limited to 'phpBB/assets/javascript/core.js')
-rw-r--r-- | phpBB/assets/javascript/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index 9eba80542c..296c5b0ef9 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -15,7 +15,7 @@ var dark = $('#darkenwrapper'); var loadingIndicator = $('#loading_indicator'); var phpbbAlertTimer = null; -var isTouch = (window && typeof window.ontouchstart !== 'undefined'); +phpbb.isTouch = (window && typeof window.ontouchstart !== 'undefined'); /** * Display a loading screen @@ -1011,7 +1011,7 @@ phpbb.resizeTextArea = function(items, options) { resetCallback: function(item) { } }; - if (isTouch) return; + if (phpbb.isTouch) return; if (arguments.length > 1) { configuration = $.extend(configuration, options); |