mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Show an alert popup in admin menu when the user is not logged in as an administrator
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12113 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ec29cf5fb1
commit
44b3d7a823
2 changed files with 6 additions and 1 deletions
|
|
@ -371,6 +371,11 @@ $.exec_json = function(action,data,func){
|
|||
,success : function(data){
|
||||
$(".wfsr").hide().trigger('cancel_confirm');
|
||||
if(data.error > 0) alert(data.message);
|
||||
if(data.error == -1 && data.message == 'msg_is_not_administrator'){
|
||||
alert('You are not logged in as an administrator');
|
||||
window.location.reload();
|
||||
return;
|
||||
}
|
||||
if($.isFunction(func)) func(data);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@
|
|||
</div>
|
||||
<div class="col url" id="add_menu" style="display:none">
|
||||
<fieldset>
|
||||
<h1><a class="title _title"><!--URL 링크--></a></h1>
|
||||
<h1 class="_title"><!--URL 링크--></h1>
|
||||
<div class="cnt">
|
||||
<ul>
|
||||
<li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue