Skip to content

Commit

Permalink
Merge pull request #1297 from /issues/1294@v4
Browse files Browse the repository at this point in the history
Wrong user-scalable value in meta name=viewport
  • Loading branch information
Vladimir Varankin committed Apr 5, 2016
2 parents 13ed0d9 + 913aab9 commit 972e49d
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion touch.blocks/page/page.bemhtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ block('page')(
content : 'width=device-width,' +
(this._zoom?
'initial-scale=1' :
'maximum-scale=1,initial-scale=1,user-scalable=0')
'maximum-scale=1,initial-scale=1,user-scalable=no')
}
},
{ elem : 'meta', attrs : { name : 'format-detection', content : 'telephone=no' } },
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/page.bh.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function(bh) {
content : 'width=device-width,' +
(ctx.tParam('zoom')?
'initial-scale=1' :
'maximum-scale=1,initial-scale=1,user-scalable=0')
'maximum-scale=1,initial-scale=1,user-scalable=no')
}
},
{ elem : 'meta', attrs : { name : 'format-detection', content : 'telephone=no' } },
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/page.tmpl-specs/00-empty.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script>
(function(e,c){e[c]=e[c].replace(/(ua_js_)no/g,"$1yes");})(document.documentElement,"className");
</script>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=0"/>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<link name="apple-mobile-web-app-capable" content="yes"/>
</head>
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/page.tmpl-specs/10-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<script src="_10-simple.js"></script>
<meta name="keywords" content="BEM"/>
<link rel="shortcut icon" href="//bem.info/favicon.ico"/>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=0"/>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<link name="apple-mobile-web-app-capable" content="yes"/>
</head>
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/page.tmpl-specs/20-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(function(e,c){e[c]=e[c].replace(/(ua_js_)no/g,"$1yes");})(document.documentElement,"className");
</script>
<style>.b-blah { color: #f00 }</style>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=0"/>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<link name="apple-mobile-web-app-capable" content="yes"/>
</head>
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/page.tmpl-specs/25-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</script>
<style>.b-blah { color: red }</style>
<style>.b-blah2 { color: green }</style>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=0"/>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<link name="apple-mobile-web-app-capable" content="yes"/>
</head>
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/page.tmpl-specs/30-scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script>
(function(e,c){e[c]=e[c].replace(/(ua_js_)no/g,"$1yes");})(document.documentElement,"className");
</script>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=0"/>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<link name="apple-mobile-web-app-capable" content="yes"/>
</head>
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/page.tmpl-specs/40-nonce.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script nonce="123">
(function(e,c){e[c]=e[c].replace(/(ua_js_)no/g,"$1yes");})(document.documentElement,"className");
</script>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=0"/>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<link name="apple-mobile-web-app-capable" content="yes"/>
</head>
Expand Down
2 changes: 1 addition & 1 deletion touch.blocks/page/page.tmpl-specs/60-x-ua-compatible.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script>
(function(e,c){e[c]=e[c].replace(/(ua_js_)no/g,"$1yes");})(document.documentElement,"className");
</script>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=0"/>
<meta name="viewport" content="width=device-width,maximum-scale=1,initial-scale=1,user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/>
<link name="apple-mobile-web-app-capable" content="yes"/>
</head>
Expand Down

0 comments on commit 972e49d

Please sign in to comment.