Autofix small errors
This commit is contained in:
90
help.php
90
help.php
@@ -91,8 +91,8 @@
|
||||
<script src="http://www.tadot.ru//j/jquery/jquery.jeegoocontext.mod.js" type="text/javascript"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var isBattle = Number(<?= $user['battle'] ?>);
|
||||
var isBid = Number(<?= $user['zayavka'] ?>);
|
||||
const isBattle = Number(<?= $user['battle'] ?
|
||||
const isBid = Number(<?= $user['zayavka'] ?
|
||||
</script>
|
||||
|
||||
<script src="http://www.tadot.ru//js/iner.js" type="text/javascript"></script>
|
||||
@@ -705,7 +705,7 @@ if(in_array($me_room, $ar_150)){ $me_150 = 1; }
|
||||
|
||||
|
||||
|
||||
if(!in_array($serch_room, $ar_all)){ }
|
||||
// if(!in_array($serch_room, $ar_all)){ }
|
||||
echo '<li>"'.$locations_normal[$serch_room].'"</li>';
|
||||
|
||||
|
||||
@@ -732,20 +732,20 @@ if(in_array($me_room, $ar_150)){ $me_150 = 1; }
|
||||
|
||||
?>
|
||||
<script>
|
||||
var pages = Number(2);
|
||||
var current_page = Number(0);
|
||||
var link_to = '?page=__id__&rows_on_page=20&source=3&co_type=&sort_by=2&cs_status=1&rand=0.692136749814743';
|
||||
const pages = Number(2);
|
||||
const current_page = Number(0);
|
||||
const link_to = '?page=__id__&rows_on_page=20&source=3&co_type=&sort_by=2&cs_status=1&rand=0.692136749814743';
|
||||
|
||||
var page = Number(<?= $_GET['page'] ?>);
|
||||
var selstatus = Number(<?= $_GET['selstatus'] ?>);
|
||||
const page = Number(<?= $_GET['page'] ?
|
||||
const selstatus = Number(<?= $_GET['selstatus'] ?
|
||||
|
||||
$(function(){
|
||||
|
||||
|
||||
var headCheckbox = $('#pal_otvet thead :checkbox');
|
||||
var bodyCheckboxes = $('#pal_otvet tbody :checkbox');
|
||||
const headCheckbox = $('#pal_otvet thead :checkbox');
|
||||
const bodyCheckboxes = $('#pal_otvet tbody :checkbox');
|
||||
|
||||
headCheckbox.click(function() {
|
||||
headCheckbox.click(function() {
|
||||
if(this.checked) {
|
||||
bodyCheckboxes.attr('checked', 'checked');
|
||||
} else {
|
||||
@@ -754,49 +754,45 @@ $(function(){
|
||||
});
|
||||
|
||||
bodyCheckboxes.click(function() {
|
||||
if(bodyCheckboxes.length == bodyCheckboxes.filter(':checked').length) {
|
||||
headCheckbox[0].checked = true;
|
||||
} else {
|
||||
headCheckbox[0].checked = false;
|
||||
}
|
||||
headCheckbox[0].checked = bodyCheckboxes.length === bodyCheckboxes.filter(':checked').length;
|
||||
});
|
||||
|
||||
|
||||
|
||||
$('#pal_otvet input.xbutton').click(function() {
|
||||
var comment = getDialog();
|
||||
comment.dialog('option', 'title', 'Комментарий Паладина');
|
||||
const comment = getDialog();
|
||||
comment.dialog('option', 'title', 'Комментарий Паладина');
|
||||
|
||||
var form = $.buildForm({
|
||||
'fields': [
|
||||
{
|
||||
'name': 'page',
|
||||
'value': page
|
||||
}, {
|
||||
'name': 'selstatus',
|
||||
'value': selstatus
|
||||
}, {
|
||||
'name': 'choosen_question',
|
||||
'value': $(this).data('id')
|
||||
},{
|
||||
'label': 'Комментарий',
|
||||
'group': [
|
||||
{
|
||||
'autocomplete': 'off',
|
||||
'name': 'cp_comment',
|
||||
'size': 60,
|
||||
'type': 'text'
|
||||
}, {
|
||||
'type': 'submit',
|
||||
'value': 'OK'
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'url': '/help.php?cmd=pal.otvet'
|
||||
});
|
||||
const form = $.buildForm({
|
||||
'fields': [
|
||||
{
|
||||
'name': 'page',
|
||||
'value': page
|
||||
}, {
|
||||
'name': 'selstatus',
|
||||
'value': selstatus
|
||||
}, {
|
||||
'name': 'choosen_question',
|
||||
'value': $(this).data('id')
|
||||
}, {
|
||||
'label': 'Комментарий',
|
||||
'group': [
|
||||
{
|
||||
'autocomplete': 'off',
|
||||
'name': 'cp_comment',
|
||||
'size': 60,
|
||||
'type': 'text'
|
||||
}, {
|
||||
'type': 'submit',
|
||||
'value': 'OK'
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
'url': '/help.php?cmd=pal.otvet'
|
||||
});
|
||||
|
||||
comment.html(form)
|
||||
comment.html(form)
|
||||
dialogOpen(comment);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user