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