Merge pull request #221 from Focuslinkstech/master

Update
This commit is contained in:
iBNu Maksum 2024-07-23 16:18:49 +07:00 committed by GitHub
commit 905f5c0772
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -586,6 +586,18 @@
{Lang::T('Miscellaneous')}
</div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('New Version Notification')}</label>
<div class="col-md-6">
<select name="new_version_notify" id="new_version_notify" class="form-control">
<option value="enable" {if $_c['new_version_notify']=='enable' }selected="selected" {/if}>{Lang::T('Enabled')}
</option>
<option value="disable" {if $_c['new_version_notify']=='disable' }selected="selected" {/if}>{Lang::T('Disabled')}
</option>
</select>
</div>
<p class="help-block col-md-4">{Lang::T('This is to notify you when new updates is available')}</p>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{Lang::T('OTP Required')}</label>
<div class="col-md-6">

View File

@ -372,6 +372,7 @@
{/literal}
{/if}
</script>
{if $_c['new_version_notify'] != 'disable'}
<script>
window.addEventListener('DOMContentLoaded', function() {
$.getJSON("./version.json?" + Math.random(), function(data) {
@ -409,5 +410,6 @@
});
</script>
{/if}
{include file="sections/footer.tpl"}