mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +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){
|
,success : function(data){
|
||||||
$(".wfsr").hide().trigger('cancel_confirm');
|
$(".wfsr").hide().trigger('cancel_confirm');
|
||||||
if(data.error > 0) alert(data.message);
|
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);
|
if($.isFunction(func)) func(data);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col url" id="add_menu" style="display:none">
|
<div class="col url" id="add_menu" style="display:none">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<h1><a class="title _title"><!--URL 링크--></a></h1>
|
<h1 class="_title"><!--URL 링크--></h1>
|
||||||
<div class="cnt">
|
<div class="cnt">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue