|
@@ -17,6 +17,9 @@ $(document).on('change', '#selectfolders', function(e) {
|
|
listFolders(this.options[e.target.selectedIndex].text);
|
|
listFolders(this.options[e.target.selectedIndex].text);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+function showitems(anzahl){
|
|
|
|
+ listData($( "#selectfolders option:selected" ).text(), anzahl);
|
|
|
|
+}
|
|
|
|
|
|
function listFolders(folder = ""){
|
|
function listFolders(folder = ""){
|
|
$('#Folders').text("");
|
|
$('#Folders').text("");
|
|
@@ -105,7 +108,7 @@ function deleteFolder(datalink) {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-function listData(folder = ""){
|
|
|
|
|
|
+function listData(folder = "", anzahl = 100){
|
|
$('#Data').text("");
|
|
$('#Data').text("");
|
|
const imageext = ["png", "jpg", "svg", "JPG", "PNG", "SVG"]
|
|
const imageext = ["png", "jpg", "svg", "JPG", "PNG", "SVG"]
|
|
const movieext = ["mp4"]
|
|
const movieext = ["mp4"]
|
|
@@ -113,7 +116,7 @@ function listData(folder = ""){
|
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
type: "GET",
|
|
type: "GET",
|
|
- url: "../server/images/" + folder,
|
|
|
|
|
|
+ url: "../server/images/" + folder + "?anzahl=" + anzahl,
|
|
dataType: "json",
|
|
dataType: "json",
|
|
success: function(data) {
|
|
success: function(data) {
|
|
$.each( data, function( key, value ) {
|
|
$.each( data, function( key, value ) {
|