mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-15 12:39:41 +01:00
fixes
This commit is contained in:
@@ -125,9 +125,8 @@ $(function () {
|
||||
});
|
||||
|
||||
function check_msg_and_reports(){
|
||||
$.ajax({
|
||||
url: './?check_msgs=1',
|
||||
success: function (data) {
|
||||
$.ajax({url: './?check_msgs=1', cache: false})
|
||||
.done(function (data) {
|
||||
if (data.indexOf("::") !== -1) {
|
||||
var nums = data.split("::");
|
||||
if (nums[0] !== 0) {
|
||||
@@ -138,8 +137,15 @@ function check_msg_and_reports(){
|
||||
$('.bubble_reports').html(nums[1]).css('display', 'inline');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
.fail(function(hxr, status, error) {
|
||||
if(confirm('{lang.SESSION_ENDED}')) {
|
||||
location.reload();
|
||||
} else {
|
||||
location.href = '{config.siteurl}';
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
setTimeout(check_msg_and_reports, 240000);
|
||||
}
|
||||
@@ -223,5 +229,7 @@ function get_kleeja_link(link) {
|
||||
location.href = link;
|
||||
}
|
||||
</script>
|
||||
|
||||
{extra_admin_footer_code}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -40,12 +40,10 @@
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--//
|
||||
var STYLE_PATH_ADMIN = '{STYLE_PATH_ADMIN}';
|
||||
var go_to = '{go_to}';
|
||||
//-->
|
||||
</script>
|
||||
|
||||
{extra_admin_header_code}
|
||||
</head>
|
||||
|
||||
<body class="fixed-nav sticky-footer bg-{admin_theme_color}" id="page-top">
|
||||
|
||||
@@ -416,8 +416,8 @@
|
||||
setTimeout(function() {
|
||||
$.ajax({
|
||||
url: "https://api.github.com/repos/awssat/kleeja/contributors",
|
||||
dataType: 'json',
|
||||
success: function (data) {
|
||||
dataType: 'json'})
|
||||
.done(function (data) {
|
||||
var template = $('#ghTemplate')[0].outerHTML;
|
||||
$.each(data, function (i, item) {
|
||||
$("#gtresults").append(template.replace('%id%', item['id']).replace('%login%', item['login']).replace(
|
||||
@@ -426,8 +426,7 @@
|
||||
'contributions']).replace('%htmlUrl%', item['html_url']));
|
||||
$('#gt' + item['id']).removeAttr('style');
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}, 400);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user