mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix #1389 improve handling of viewport meta tag
- viewport 설정에 빈 값을 저장한 경우 메타 태그를 출력하지 않음 - 단, 아예 설정이 없는 경우(XE 또는 구버전에서 업그레이드한 경우)에는 예외
This commit is contained in:
parent
28d71acffd
commit
82bf017f01
6 changed files with 18 additions and 3 deletions
|
|
@ -87,7 +87,7 @@
|
|||
<label class="x_control-label" for="mobile_viewport">{$lang->mobile_viewport}</label>
|
||||
<div class="x_controls">
|
||||
<input type="text" name="mobile_viewport" id="mobile_viewport" value="{$mobile_viewport}" style="min-width: 80%" />
|
||||
<p class="x_help-block">{$lang->about_mobile_viewport}</p>
|
||||
<p class="x_help-block">{$lang->about_mobile_viewport} <a href="javascript:restoreDefaultViewport()">{$lang->restore_default_viewport}</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
|
|
@ -222,3 +222,9 @@
|
|||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
function restoreDefaultViewport() {
|
||||
$('#mobile_viewport').val({\HTMLDisplayHandler::DEFAULT_VIEWPORT|json|noescape});
|
||||
}
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue