mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +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();
|
||||
var vals = getSelectedVideos();
|
||||
$.ajax({
|
||||
url: webSiteRootURL+'objects/userGroupSave.json.php',
|
||||
url: webSiteRootURL + 'objects/userGroupSave.json.php',
|
||||
data: {"id": vals, "users_groups_id": users_groups_id, "add": add},
|
||||
type: 'post',
|
||||
success: function (response) {
|
||||
|
@ -1546,9 +1546,13 @@ if (Permissions::canAdminVideos()) {
|
|||
$('#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() {
|
||||
var url = webSiteRootURL + "objects/videos.json.php?showAll=1&status=" + filterStatus;
|
||||
|
||||
$('.searchFieldsNames:checked').each(function (index) {
|
||||
url = addGetParam(url, 'searchFieldsNames[' + index + ']', $(this).val());
|
||||
});
|
||||
|
@ -1556,7 +1560,7 @@ if (Permissions::canAdminVideos()) {
|
|||
}
|
||||
|
||||
var grid = $("#grid").bootgrid({
|
||||
padding:4,
|
||||
padding: 4,
|
||||
labels: {
|
||||
noResults: "<?php echo __("No results found!"); ?>",
|
||||
all: "<?php echo __("All"); ?>",
|
||||
|
@ -1849,10 +1853,11 @@ if (AVideoPlugin::isEnabledByName('PlayLists')) {
|
|||
|
||||
},
|
||||
post: function () {
|
||||
var page = $("#grid").bootgrid("getCurrentPage");
|
||||
var page = getGridCurrentPage();
|
||||
if (!page) {
|
||||
page = 1;
|
||||
}
|
||||
console.log('post page', page);
|
||||
var ret = {current: page};
|
||||
return ret;
|
||||
},
|
||||
|
@ -2008,7 +2013,9 @@ if (Permissions::canAdminVideos()) {
|
|||
|
||||
setVideoSuggested(row.id, isSuggested).then((data) => {
|
||||
$("#grid").bootgrid("reload");
|
||||
}).catch((error) => {console.log(error)});
|
||||
}).catch((error) => {
|
||||
console.log(error)
|
||||
});
|
||||
});
|
||||
grid.find(".command-editlikes").on("click", function (e) {
|
||||
var row_index = $(this).closest('tr').index();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue