add msg when user session expired at page admin
This commit is contained in:
parent
5ff7dfbac6
commit
62fa589e8a
|
@ -2,5 +2,14 @@
|
||||||
<%= render_node_and_children(Item.first(:conditions => {:parent_id => nil})) %>
|
<%= render_node_and_children(Item.first(:conditions => {:parent_id => nil})) %>
|
||||||
</ol>
|
</ol>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
$.ajaxSetup({
|
||||||
|
error: function(xhr, status, err) {
|
||||||
|
if (xhr.status == 401){
|
||||||
|
alert("<%= I18n.t('access.denied.ajax_401_error') %>");
|
||||||
|
window.location.href = '/';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
bindTreeDragHandle();
|
bindTreeDragHandle();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -4,6 +4,7 @@ en:
|
||||||
|
|
||||||
access:
|
access:
|
||||||
denied:
|
denied:
|
||||||
|
ajax_401_error: "User session has been expired,please login again."
|
||||||
app:
|
app:
|
||||||
not_authed_user: Access Denied for you are not User for this app
|
not_authed_user: Access Denied for you are not User for this app
|
||||||
not_manager: Access Denied for you are not Manager for this app
|
not_manager: Access Denied for you are not Manager for this app
|
||||||
|
|
|
@ -4,6 +4,7 @@ zh_tw:
|
||||||
|
|
||||||
access:
|
access:
|
||||||
denied:
|
denied:
|
||||||
|
ajax_401_error: 使用者已逾時或是登出,請重新登入
|
||||||
app:
|
app:
|
||||||
not_authed_user: 拒絕存取,因你不是此應用程式授權使用者
|
not_authed_user: 拒絕存取,因你不是此應用程式授權使用者
|
||||||
not_manager: 拒絕存取,因你不是此應用程式管理員
|
not_manager: 拒絕存取,因你不是此應用程式管理員
|
||||||
|
|
Loading…
Reference in New Issue