add msg when user session expired at page admin

This commit is contained in:
Matt K. Fu committed 2013-04-24 11:58:48 +08:00
1 parent 5ff7dfbac6
commit 62fa589e8a
3 files changed
+11

No files matched your search

@@ -2,5 +2,14 @@
<%= render_node_and_children(Item.first(:conditions => {:parent_id => nil})) %>
</ol>
<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();
</script>