mirror of https://gitee.com/karson/fastadmin.git
Revert "update application/common/view/tpl/dispatch_jump.tpl."
Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>pull/475/head
parent
d6635c1cd6
commit
04af4aa1c0
|
|
@ -41,19 +41,18 @@
|
||||||
<p class="clearfix">
|
<p class="clearfix">
|
||||||
<a href="__PUBLIC__" class="btn btn-grey">{:__('Go back')}</a>
|
<a href="__PUBLIC__" class="btn btn-grey">{:__('Go back')}</a>
|
||||||
{if $url}
|
{if $url}
|
||||||
<a id="href" href="{$url|htmlentities}" class="btn btn-primary">{:__('Jump now')}</a>
|
<a href="{$url|htmlentities}" class="btn btn-primary">{:__('Jump now')}</a>
|
||||||
{/if}
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{if $url}
|
{if $url}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function () {
|
(function () {
|
||||||
var wait = document.getElementById('wait'),
|
var wait = document.getElementById('wait');
|
||||||
href = document.getElementById('href').href;
|
|
||||||
var interval = setInterval(function () {
|
var interval = setInterval(function () {
|
||||||
var time = --wait.innerHTML;
|
var time = --wait.innerHTML;
|
||||||
if (time <= 0) {
|
if (time <= 0) {
|
||||||
location.href = href;
|
location.href = "{$url|htmlentities}";
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue