Commit 306e765f authored by Van's avatar Van

🎨 tip

parent a883eeeb
......@@ -25,6 +25,7 @@
};
var Label = {
"uploadMsg": '${uploadMsg}',
"uploadToken": "${uploadToken}",
"uploadURL": "${uploadURL}",
"markedAvailable": ${markedAvailable?c},
......
......@@ -156,7 +156,7 @@ admin.article = {
if ($('#articleThumbnail').prop('checked')) {
var bgImage = $('.thumbnail__img').css('background-image')
articleContent = '![](' + bgImage.substring(5, bgImage.length - 2) +
articleContent = '![](' + bgImage.substring(5, bgImage.length - 2).replace('w/768', 'w/960').replace('h/432', 'h/540') +
')\n\n' + articleContent
}
......@@ -393,6 +393,8 @@ admin.article = {
$(this).addClass('selected')
})
$('#tipMsg').text(Label.uploadMsg)
// For tag auto-completion
$.ajax({// Gets all tags
url: latkeConfig.servePath + '/console/tags',
......@@ -623,7 +625,7 @@ admin.register.article = {
admin.editors.abstractEditor.setContent('')
admin.editors.articleEditor.setContent('')
$('#loadMsg').text('')
$('#tipMsg').text('')
$('#tipMsg').text(Label.uploadMsg)
},
}
......
This diff is collapsed.
Subproject commit bb908f197414ccdff6c24ed282ccc018efd5cebc
Subproject commit 2248d25866e509e090ab43c4a653f9646419d376
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment