mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 23:48:41 +02:00
Merge remote-tracking branch 'origin/master' into search_hooks
This commit is contained in:
@@ -164,7 +164,7 @@ define(['forum/admin/settings'], function(Settings) {
|
||||
hoverClass: "panel-info"
|
||||
})
|
||||
.children('.panel-heading')
|
||||
.append('<div class="pull-right pointer"><span class="delete-widget"><i class="fa fa-times-circle"></i></span> <span class="toggle-widget"><i class="fa fa-chevron-down"></i></span></div>')
|
||||
.append('<div class="pull-right pointer"><span class="delete-widget"><i class="fa fa-times-circle"></i></span></div><div class="pull-left pointer"><span class="toggle-widget"><i class="fa fa-chevron-circle-down"></i></span> </div>')
|
||||
.children('small').html('');
|
||||
}
|
||||
}
|
||||
@@ -184,6 +184,8 @@ define(['forum/admin/settings'], function(Settings) {
|
||||
panel.remove();
|
||||
}
|
||||
});
|
||||
}).on('dblclick', '.panel-heading', function() {
|
||||
$(this).parents('.panel').children('.panel-body').toggleClass('hidden');
|
||||
});
|
||||
|
||||
$('#widgets .btn[data-template]').on('click', function() {
|
||||
|
||||
@@ -95,6 +95,11 @@
|
||||
<div class="jumbotron pointer" data-container-html='<div class="jumbotron">{body}</div>'>
|
||||
Jumbotron
|
||||
</div>
|
||||
<div class="panel" data-container-html='<div class="panel"><div class="panel-body">{body}</div></div>'>
|
||||
<div class="panel-body pointer">
|
||||
Panel
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default pointer" data-container-html='<div class="panel panel-default"><div class="panel-heading">{title}</div><div class="panel-body">{body}</div></div>'>
|
||||
<div class="panel-heading">
|
||||
Panel Header
|
||||
|
||||
11
src/image.js
11
src/image.js
@@ -11,7 +11,16 @@ image.resizeImage = function(path, extension, width, height, callback) {
|
||||
}
|
||||
|
||||
if(extension === '.gif') {
|
||||
imagemagick.convert([path, '-coalesce', '-repage', '0x0', '-crop', width+'x'+height+'+0+0', '+repage', 'uploadPath'], done);
|
||||
imagemagick.convert([
|
||||
path,
|
||||
'-coalesce',
|
||||
'-repage',
|
||||
'0x0',
|
||||
'-crop',
|
||||
width+'x'+height+'+0+0',
|
||||
'+repage',
|
||||
path
|
||||
], done);
|
||||
} else {
|
||||
imagemagick.crop({
|
||||
srcPath: path,
|
||||
|
||||
Reference in New Issue
Block a user