Commit 69ef5464 authored by Liang Ding's avatar Liang Ding

Merge branch '3.0.0-dev' of https://github.com/b3log/solo into 3.0.0-dev

parents 48a3d2e1 b4e7522e
......@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.6.0.1, Feb 8, 2019
* @version 2.6.0.2, Feb 10, 2019
*/
/* start resset */
......@@ -872,8 +872,9 @@ table.form th {
background-size: cover;
background-repeat: no-repeat;
background-position: 50%;
height: 648px;
width: 100%;
height: 432px;
width: 768px;
margin: 0 auto;
}
.article__thumbnail button {
......
......@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.6.0.0, Feb 6, 2019
* @version 1.6.0.1, Feb 10, 2019
*/
admin.article = {
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
......@@ -235,7 +235,7 @@ admin.article = {
articleAbstract = admin.editors.abstractEditor.getContent()
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
}
var requestJSONObject = {
......@@ -461,7 +461,7 @@ admin.article = {
// thumbnail
$('#articleThumbnailBtn').click(function () {
$.ajax({// Gets all tags
url: latkeConfig.servePath + '/console/thumbs?n=1',
url: latkeConfig.servePath + '/console/thumbs?n=1&w=768&h=432',
type: 'GET',
cache: false,
success: function (result, textStatus) {
......
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