mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
update to movim upstream
This commit is contained in:
parent
c5448cecdd
commit
75c18d4c3d
6 changed files with 20 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
**Changelog**
|
||||
|
||||
1.7 2016-?
|
||||
- Update to movim 0.9 git2016-03-11
|
||||
- Update to movim 0.9 git2016-03-14
|
||||
- Php composer stuff is now shipped in the package
|
||||
- conf/nginx.conf : disable the Yunohost logo
|
||||
- script/install : comment (disable) php composer stuff
|
||||
|
|
|
@ -5,7 +5,7 @@ Movim is a decentralized social network, written in PHP and HTML5 and based on t
|
|||
|
||||
It is recommended to use a "valid" certificate to use Movim, auto-signed is sometimes problematic. You might want to take a look a StartSSL or Let's Encrypt.
|
||||
|
||||
Provided Movim version : 0.9 git2016-03-11
|
||||
Provided Movim version : 0.9 git2016-03-14
|
||||
|
||||
Please read CHANGELOG.
|
||||
|
||||
|
|
|
@ -242,4 +242,9 @@ Upload.attach(function() {
|
|||
movim_textarea_autoheight(textarea);
|
||||
});
|
||||
|
||||
document.addEventListener('focus', function() {
|
||||
var textarea = document.querySelector('#chat_textarea');
|
||||
if(textarea) textarea.focus();
|
||||
});
|
||||
|
||||
var state = 0;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
{if="isset($httpAuthUser)"}
|
||||
<script type="text/javascript">
|
||||
localStorage.username = '{$httpAuthUser}';
|
||||
MovimWebsocket.attach(function() {
|
||||
MovimWebsocket.connection.register('{$httpAuthHost}');
|
||||
});
|
||||
|
|
|
@ -166,15 +166,16 @@ if(typeof MovimWebsocket != 'undefined') {
|
|||
});
|
||||
}
|
||||
|
||||
document.onblur = function() {
|
||||
document.addEventListener('blur', function() {
|
||||
Notification.focused = false;
|
||||
Notification_ajaxCurrent('blurred');
|
||||
}
|
||||
document.onfocus = function() {
|
||||
});
|
||||
|
||||
document.addEventListener('focus', function() {
|
||||
Notification.focused = true;
|
||||
Notification.current(Notification.notifs_key);
|
||||
Notification_ajaxClear(Notification.notifs_key);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
window.addEventListener('load', function () {
|
||||
|
|
|
@ -130,6 +130,10 @@ class Picture {
|
|||
$im->readImageBlob($this->_bin);
|
||||
if($im != false) {
|
||||
$im->setImageFormat($format);
|
||||
|
||||
$im->setImageBackgroundColor('#ffffff');
|
||||
$im = $im->flattenImages();
|
||||
|
||||
$im->setImageCompressionQuality(95);
|
||||
$im->setInterlaceScheme(Imagick::INTERLACE_PLANE);
|
||||
$im->writeImage($path);
|
||||
|
@ -156,6 +160,9 @@ class Picture {
|
|||
$im->readImageBlob($this->_bin);
|
||||
$im->setImageFormat($format);
|
||||
|
||||
$im->setImageBackgroundColor('#ffffff');
|
||||
$im = $im->flattenImages();
|
||||
|
||||
$geo = $im->getImageGeometry();
|
||||
|
||||
$im->cropThumbnailImage($width, $height);
|
||||
|
|
Loading…
Add table
Reference in a new issue