diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index 00c4a5a9..bbce2561 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -358,6 +358,15 @@ AGREE_RULES: 'I agree and already read all the rules, read here', DOWNLOAD_TORRENT: 'Download Torrent', + ENTER_MUSIC_TITLE: '3. Please enter the music/album title', + MUSIC_TITLE: 'title', + MUSIC_SUB_TITLE: 'short desc', + SELECT_MUSIC_IMAGE: '3.1 Please select music/album cover image', + MUSIC_COVER_UPLOAD_SUCCESSFULLY: 'Successfully upload music cover', + MUSIC_COVER_UPLOAD_FAILED: 'Failed to upload music cover', + ENTER_MUSIC_DETAIL_INFO: '4. Please enter the music/album detail info', + ERROR_ONLY_IMAGE: 'Only image files support(gif, png, bmp, jpg, jpeg)', + //ranking view PAGE_HEADER_RANKING_UPLOAD: 'Uploaded Ranking', PAGE_HEADER_RANKING_DOWNLOAD: 'Downloaded Ranking', diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index cc3f8252..837619db 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -358,6 +358,15 @@ AGREE_RULES: '我已阅读并同意站内所有协议条款,协议条款', DOWNLOAD_TORRENT: '下载种子', + ENTER_MUSIC_TITLE: '3. 请输入音乐/专辑标题', + MUSIC_TITLE: '标题', + MUSIC_SUB_TITLE: '短描述', + SELECT_MUSIC_IMAGE: '3.1 请选择音乐/专辑封面图片', + MUSIC_COVER_UPLOAD_SUCCESSFULLY: '封面图片上传成功', + MUSIC_COVER_UPLOAD_FAILED: '封面图片上传失败', + ENTER_MUSIC_DETAIL_INFO: '4. 请输入音乐/专辑详细信息', + ERROR_ONLY_IMAGE: '此处只支持图片文件上传(gif, png, bmp, jpg, jpeg)', + //ranking view PAGE_HEADER_RANKING_UPLOAD: '上传量排行榜', PAGE_HEADER_RANKING_DOWNLOAD: '下载量排行榜', diff --git a/modules/core/client/directives/mt-markdown-editor.client.directive.js b/modules/core/client/directives/mt-markdown-editor.client.directive.js index fd54f36a..a642a8c2 100644 --- a/modules/core/client/directives/mt-markdown-editor.client.directive.js +++ b/modules/core/client/directives/mt-markdown-editor.client.directive.js @@ -4,9 +4,9 @@ angular.module('core') .directive('mtMarkdownEditor', mtMarkdownEditor); - mtMarkdownEditor.$inject = ['localStorageService', '$compile', 'NotifycationService', '$timeout']; + mtMarkdownEditor.$inject = ['localStorageService', '$compile', 'NotifycationService', '$translate', 'DebugConsoleService', '$timeout']; - function mtMarkdownEditor(localStorageService, $compile, NotifycationService, $timeout) { + function mtMarkdownEditor(localStorageService, $compile, NotifycationService, $translate, mtDebug, $timeout) { var directive = { restrict: 'A', require: 'ngModel', @@ -32,6 +32,7 @@ scope.uProgress = 0; scope.uFiles = []; scope.uImages = []; + scope.$parent.uImages = []; var eleUploadTip = angular.element('
{{ 'FORUMS.PC_REQUIRED' | translate}}
diff --git a/modules/forums/client/views/topic.client.view.html b/modules/forums/client/views/topic.client.view.html index bca798e4..57301332 100644 --- a/modules/forums/client/views/topic.client.view.html +++ b/modules/forums/client/views/topic.client.view.html @@ -256,6 +256,7 @@