mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-22 16:41:17 +03:00
fix bugs
This commit is contained in:
parent
6a9c46eb00
commit
3f20a0e963
3 changed files with 13 additions and 3 deletions
|
@ -40,7 +40,7 @@ class Comment {
|
||||||
<div class="comment-votes-block">
|
<div class="comment-votes-block">
|
||||||
<div class="wvote" wid="'.$this->c['id'].'">
|
<div class="wvote" wid="'.$this->c['id'].'">
|
||||||
<a href="#" vote="1" class="w-btn s2"><span>+</span></a>
|
<a href="#" vote="1" class="w-btn s2"><span>+</span></a>
|
||||||
<div class="w-rating '.$commclass.'">'.$symb.Vote::countcommrates($this->c['id'], -1).'</div>
|
<div class="w-rating '.$commclass.' active">'.$symb.Vote::countcommrates($this->c['id'], -1).'</div>
|
||||||
<div class="w-rating-ext">
|
<div class="w-rating-ext">
|
||||||
<div><span class="pro">+'.Vote::countcommrates($this->c['id'], 1).'</span> / <span class="con">'.Vote::countcommrates($this->c['id'], 0).'</span></div>
|
<div><span class="pro">+'.Vote::countcommrates($this->c['id'], 1).'</span> / <span class="con">'.Vote::countcommrates($this->c['id'], 0).'</span></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -196,9 +196,12 @@ if ($photo->i('id') !== null) {
|
||||||
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td id="pp-main-col">
|
<td id="pp-main-col">
|
||||||
<div id="pp-item-vdata">
|
<div id="pp-item-vdata">
|
||||||
|
<?php
|
||||||
|
if ($photo->content('type') != 'none') {
|
||||||
|
?>
|
||||||
<div class="p0" id="pp-item-exif">
|
<div class="p0" id="pp-item-exif">
|
||||||
<h4 class="pp-item-header">Параметры съёмки</h4>
|
<h4 class="pp-item-header">Параметры съёмки</h4>
|
||||||
<div class="pp-item-body">
|
<div class="pp-item-body">
|
||||||
|
@ -227,6 +230,7 @@ if ($photo->i('id') !== null) {
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
<?php
|
<?php
|
||||||
if ($photo->content('lat') != null && $photo->content('lng') != null) { ?>
|
if ($photo->content('lat') != null && $photo->content('lng') != null) { ?>
|
||||||
<div class="p0" id="pp-item-exif">
|
<div class="p0" id="pp-item-exif">
|
||||||
|
@ -331,6 +335,7 @@ marker.bindPopup("<b>Выбранная точка</b>").openPopup();
|
||||||
window.location.replace(jsonData.twofaurl);
|
window.location.replace(jsonData.twofaurl);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
} else if (jsonData.errorcode == "0") {
|
} else if (jsonData.errorcode == "0") {
|
||||||
|
$('#wtext').val('');
|
||||||
Notify.noty('success', 'Комментарий отправлен!');
|
Notify.noty('success', 'Комментарий отправлен!');
|
||||||
//$("#result").html("<div class='alert alert-successnew container mt-5' role='alert'>Успешный вход!</div>");
|
//$("#result").html("<div class='alert alert-successnew container mt-5' role='alert'>Успешный вход!</div>");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
|
@ -852,7 +852,7 @@ $user = new User(Auth::userid());
|
||||||
var percent = $('.percent');
|
var percent = $('.percent');
|
||||||
var status = $('#status');
|
var status = $('#status');
|
||||||
var continuepost = 0;
|
var continuepost = 0;
|
||||||
|
$('#submitbtn').prop("disabled", true);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -891,6 +891,7 @@ $user = new User(Auth::userid());
|
||||||
Notify.noty('danger', escapeHtml(err.message));
|
Notify.noty('danger', escapeHtml(err.message));
|
||||||
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
||||||
scrollProgressBarWidth(0);
|
scrollProgressBarWidth(0);
|
||||||
|
$('#submitbtn').prop("disabled", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jsonData.errorcode == "1") {
|
if (jsonData.errorcode == "1") {
|
||||||
|
@ -901,6 +902,7 @@ $user = new User(Auth::userid());
|
||||||
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
||||||
Notify.noty('danger', 'В посте нет контента!');
|
Notify.noty('danger', 'В посте нет контента!');
|
||||||
scrollProgressBarWidth(0);
|
scrollProgressBarWidth(0);
|
||||||
|
$('#submitbtn').prop("disabled", false);
|
||||||
|
|
||||||
} else if (jsonData.errorcode == "101") {
|
} else if (jsonData.errorcode == "101") {
|
||||||
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
||||||
|
@ -909,6 +911,7 @@ $user = new User(Auth::userid());
|
||||||
$("#prgrsg").html('');
|
$("#prgrsg").html('');
|
||||||
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
||||||
Notify.noty('danger', 'В посте больше 10 медиафайлов');
|
Notify.noty('danger', 'В посте больше 10 медиафайлов');
|
||||||
|
$('#submitbtn').prop("disabled", false);
|
||||||
scrollProgressBarWidth(0);
|
scrollProgressBarWidth(0);
|
||||||
} else if (jsonData.errorcode == "0") {
|
} else if (jsonData.errorcode == "0") {
|
||||||
Notify.noty('success', 'Успешная публикация!');
|
Notify.noty('success', 'Успешная публикация!');
|
||||||
|
@ -945,6 +948,7 @@ $user = new User(Auth::userid());
|
||||||
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
||||||
Notify.noty('danger', 'Неизвестная ошибка');
|
Notify.noty('danger', 'Неизвестная ошибка');
|
||||||
scrollProgressBarWidth(0);
|
scrollProgressBarWidth(0);
|
||||||
|
$('#submitbtn').prop("disabled", false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
|
@ -954,6 +958,7 @@ $user = new User(Auth::userid());
|
||||||
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
||||||
Notify.noty('danger', 'Не удалось опубликовать пост');
|
Notify.noty('danger', 'Не удалось опубликовать пост');
|
||||||
scrollProgressBarWidth(0);
|
scrollProgressBarWidth(0);
|
||||||
|
$('#submitbtn').prop("disabled", false);
|
||||||
},
|
},
|
||||||
cache: false,
|
cache: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
|
|
Loading…
Reference in a new issue