mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Coin: Revert redundant indentation changes
This commit is contained in:
parent
10040332ed
commit
f0a51237de
2 changed files with 3 additions and 3 deletions
|
@ -255,7 +255,7 @@ final class WallPresenter extends OpenVKPresenter
|
||||||
$album = NULL;
|
$album = NULL;
|
||||||
if(!$anon && $wall > 0 && $wall === $this->user->id)
|
if(!$anon && $wall > 0 && $wall === $this->user->id)
|
||||||
$album = (new Albums)->getUserWallAlbum($wallOwner);
|
$album = (new Albums)->getUserWallAlbum($wallOwner);
|
||||||
|
|
||||||
$photo = Photo::fastMake($this->user->id, $this->postParam("text"), $_FILES["_pic_attachment"], $album, $anon);
|
$photo = Photo::fastMake($this->user->id, $this->postParam("text"), $_FILES["_pic_attachment"], $album, $anon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -284,7 +284,7 @@ final class WallPresenter extends OpenVKPresenter
|
||||||
} catch (\LengthException $ex) {
|
} catch (\LengthException $ex) {
|
||||||
$this->flashFail("err", tr("failed_to_publish_post"), tr("post_is_too_big"));
|
$this->flashFail("err", tr("failed_to_publish_post"), tr("post_is_too_big"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!is_null($photo))
|
if(!is_null($photo))
|
||||||
$post->attach($photo);
|
$post->attach($photo);
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ function setupWallPostInputHandlers(id) {
|
||||||
var newHeight = textArea.scrollHeight;
|
var newHeight = textArea.scrollHeight;
|
||||||
textArea.style.height = newHeight + boost + "px";
|
textArea.style.height = newHeight + boost + "px";
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// revert to original size if it is larger (possibly changed by user)
|
// revert to original size if it is larger (possibly changed by user)
|
||||||
// textArea.style.height = (newHeight > originalHeight ? (newHeight + boost) : originalHeight) + "px";
|
// textArea.style.height = (newHeight > originalHeight ? (newHeight + boost) : originalHeight) + "px";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue