Browse Source

Fixed generate delete for names with spaces

tags/v1.3
Teknikode 5 years ago
parent
commit
7b20584145
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      upload/main.php

+ 2
- 2
upload/main.php View File

@@ -55,7 +55,7 @@ Dropzone.options.TeknikUpload = {
this.on("success", function(file, responseText) {
obj = JSON.parse(responseText);
var name = obj.results.file.name;
var short_name = file.name.split(".")[0];
var short_name = encodeURIComponent(file.name.split(".")[0]);
$("#upload-links").css('display', 'inline', 'important');
$("#upload-links").prepend(' \
<div class="row link_'+short_name+'"> \
@@ -73,7 +73,7 @@ Dropzone.options.TeknikUpload = {
linkUploadDelete('.generate-delete-link-'+short_name+'');
});
this.on("removedfile", function(file) {
var name = file.name.split(".")[0];
var name = encodeURIComponent(file.name.split(".")[0]);
$('.link_'+name).remove();
});
this.on("reset", function(file, responseText) {

Loading…
Cancel
Save