实训任务暂时离开
This commit is contained in:
parent
e0739d5d57
commit
a9fae4da36
|
@ -11,29 +11,13 @@
|
||||||
</li>
|
</li>
|
||||||
<div class="task-popup-submit clearfix">
|
<div class="task-popup-submit clearfix">
|
||||||
<a href="javascript:void(0);" class="task-btn fl" onclick="hideModal()">取消</a>
|
<a href="javascript:void(0);" class="task-btn fl" onclick="hideModal()">取消</a>
|
||||||
<a href="javascript:void(0);" class="task-btn task-btn-green fr" onclick="close_web();">确定</a>
|
<a href="javascript:void(0);" class="task-btn task-btn-green fr" onclick="hideModal();close_web();">确定</a>
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
function close_web(){
|
function close_web(){
|
||||||
if (navigator.userAgent.indexOf("MSIE") > 0) { //IE浏览器
|
window.location.href = '<%= user_path(User.current) %>';
|
||||||
if (navigator.userAgent.indexOf("MSIE 6.0") > 0) {
|
|
||||||
window.opener = null; window.close();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
window.open('', '_top'); window.top.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (navigator.userAgent.indexOf("Firefox") > 0 || navigator.userAgent.indexOf("Chrome") > 0 ) { //火狐浏览器和谷歌
|
|
||||||
window.location.href = 'about:blank';
|
|
||||||
//window.history.go(-2);
|
|
||||||
}
|
|
||||||
else { //其他浏览器
|
|
||||||
window.opener = null;
|
|
||||||
window.open('', '_self', '');
|
|
||||||
window.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue