mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
This commit is contained in:
parent
bb08f2ad22
commit
9bff738c71
3 changed files with 3366 additions and 3359 deletions
2
view/js/bootgrid/jquery.bootgrid.min.js
vendored
2
view/js/bootgrid/jquery.bootgrid.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -588,7 +588,7 @@ if (empty($advancedCustomUser->userCanNotChangeUserGroup) || Permissions::canAdm
|
||||||
modal.showPleaseWait();
|
modal.showPleaseWait();
|
||||||
var vals = getSelectedVideos();
|
var vals = getSelectedVideos();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: webSiteRootURL+'objects/userGroupSave.json.php',
|
url: webSiteRootURL + 'objects/userGroupSave.json.php',
|
||||||
data: {"id": vals, "users_groups_id": users_groups_id, "add": add},
|
data: {"id": vals, "users_groups_id": users_groups_id, "add": add},
|
||||||
type: 'post',
|
type: 'post',
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
|
@ -1546,9 +1546,13 @@ if (Permissions::canAdminVideos()) {
|
||||||
$('#inputNextVideo-id').val("");
|
$('#inputNextVideo-id').val("");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function getGridCurrentPage() {
|
||||||
|
return $("#grid").bootgrid("getCurrentPage");
|
||||||
|
// //return parseInt($('#grid-footer > div > div:nth-child(1) > ul > li.active > a').attr('data-page'));
|
||||||
|
}
|
||||||
|
|
||||||
function getGridURL() {
|
function getGridURL() {
|
||||||
var url = webSiteRootURL + "objects/videos.json.php?showAll=1&status=" + filterStatus;
|
var url = webSiteRootURL + "objects/videos.json.php?showAll=1&status=" + filterStatus;
|
||||||
|
|
||||||
$('.searchFieldsNames:checked').each(function (index) {
|
$('.searchFieldsNames:checked').each(function (index) {
|
||||||
url = addGetParam(url, 'searchFieldsNames[' + index + ']', $(this).val());
|
url = addGetParam(url, 'searchFieldsNames[' + index + ']', $(this).val());
|
||||||
});
|
});
|
||||||
|
@ -1556,7 +1560,7 @@ if (Permissions::canAdminVideos()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var grid = $("#grid").bootgrid({
|
var grid = $("#grid").bootgrid({
|
||||||
padding:4,
|
padding: 4,
|
||||||
labels: {
|
labels: {
|
||||||
noResults: "<?php echo __("No results found!"); ?>",
|
noResults: "<?php echo __("No results found!"); ?>",
|
||||||
all: "<?php echo __("All"); ?>",
|
all: "<?php echo __("All"); ?>",
|
||||||
|
@ -1849,10 +1853,11 @@ if (AVideoPlugin::isEnabledByName('PlayLists')) {
|
||||||
|
|
||||||
},
|
},
|
||||||
post: function () {
|
post: function () {
|
||||||
var page = $("#grid").bootgrid("getCurrentPage");
|
var page = getGridCurrentPage();
|
||||||
if (!page) {
|
if (!page) {
|
||||||
page = 1;
|
page = 1;
|
||||||
}
|
}
|
||||||
|
console.log('post page', page);
|
||||||
var ret = {current: page};
|
var ret = {current: page};
|
||||||
return ret;
|
return ret;
|
||||||
},
|
},
|
||||||
|
@ -2008,7 +2013,9 @@ if (Permissions::canAdminVideos()) {
|
||||||
|
|
||||||
setVideoSuggested(row.id, isSuggested).then((data) => {
|
setVideoSuggested(row.id, isSuggested).then((data) => {
|
||||||
$("#grid").bootgrid("reload");
|
$("#grid").bootgrid("reload");
|
||||||
}).catch((error) => {console.log(error)});
|
}).catch((error) => {
|
||||||
|
console.log(error)
|
||||||
|
});
|
||||||
});
|
});
|
||||||
grid.find(".command-editlikes").on("click", function (e) {
|
grid.find(".command-editlikes").on("click", function (e) {
|
||||||
var row_index = $(this).closest('tr').index();
|
var row_index = $(this).closest('tr').index();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue