Browse Source

Modified calls

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

+ 2
- 4
upload/main.php View File

@@ -55,8 +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];
short_name = short_name.hashcode();
var short_name = file.name.split(".")[0].hashCode();
$("#upload-links").css('display', 'inline', 'important');
$("#upload-links").prepend(' \
<div class="row link_'+short_name+'"> \
@@ -74,8 +73,7 @@ Dropzone.options.TeknikUpload = {
linkUploadDelete('.generate-delete-link-'+short_name+'');
});
this.on("removedfile", function(file) {
var name = file.name.split(".")[0];
name = name.hashcode();
var name = file.name.split(".")[0].hashCode();
$('.link_'+name).remove();
});
this.on("reset", function(file, responseText) {

Loading…
Cancel
Save