Browse Source

Improved upload-title when filename/url too long

Tobias Reich 10 years ago
parent
commit
cf3eda60f8
3 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/js/build.js
  2. 0 0
      assets/min/main.js
  3. 0 0
      assets/min/view.js

+ 1 - 1
assets/js/build.js

@@ -218,7 +218,7 @@ build = {
 
 		for (var i = 0; i < files.length; i++) {
 
-			if (files[i].name.length>40) files[i].name = files[i].name.substr(0, 40) + "...";
+			if (files[i].name.length>40) files[i].name = files[i].name.substr(0, 17) + "..." + files[i].name.substr(files[i].name.length-20, 20);
 
 			if (files[i].supported===true) {
 

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


File diff suppressed because it is too large
+ 0 - 0
assets/min/view.js


Some files were not shown because too many files changed in this diff