Commit c1d895b144fbda0063e3e458313c3da072b52bf1

Authored by Antoine Goutenoir
1 parent 8ba63c8d
Exists in master

Extend usage of the shim for the multiline placeholder to all things Mac.

Hopefully.
Showing 1 changed file with 2 additions and 4 deletions   Show diff stats
flaskr/templates/request-estimation.html
... ... @@ -218,11 +218,9 @@
218 218 // This breaks accessibility and form input retention,
219 219 // so we're trying to only enable it for the iDiot platforms.
220 220 $(function() {
  221 + var isHell = navigator.platform.match(/(iPhone|iP[ao]d|Mac|Pike)/i);
221 222  
222   - //var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
223   - var isDumb = navigator.platform.match(/i(Phone|Pod))/i);
224   -
225   - if (isDumb) {
  223 + if (isHell) {
226 224 var style = $('<style>textarea[data-placeholder].active { color: #666; }</style>')
227 225 $('html > head').append(style);
228 226  
... ...