Skip to content

Commit

Permalink
attachment: Remove new line between filenames when upload
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Sep 24, 2017
1 parent 303b4c3 commit c101ce7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/javascripts/common/yobi.Attachments.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ yobi.Attachments = function(htOptions) {
var sFileName = welItem.attr("data-name");
var sFilePath = welItem.attr("data-href");

var sLinkText = '[' + sFileName + '](' + sFilePath + ')\n';
var sLinkText = '[' + sFileName + '](' + sFilePath + ') ';

if (sMimeType.substr(0,5) === "image") {
return '!' + sLinkText;
Expand Down
5 changes: 2 additions & 3 deletions public/javascripts/common/yobi.Files.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,8 @@ yobi.Files = (function(){
*/
function _getSubmitId(){
var now = new Date();
return now.getFullYear() + '' + (now.getMonth() + 1) + '-' + now.getDate()
+ '-' + now.getHours() + '' + now.getMinutes() + '-' + now.getSeconds()
+ '-' + now.getMilliseconds();
return now.getMilliseconds() + '-' + now.getFullYear() + '' + (now.getMonth() + 1)
+ '-' + now.getDate() + '-' + now.getHours() + '' + now.getMinutes() + '-' + now.getSeconds();
}

/**
Expand Down
6 changes: 3 additions & 3 deletions public/javascripts/yona-lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c101ce7

Please sign in to comment.