Coin: Revert redundant indentation changes

This commit is contained in:
Maxim Leshchenko 2022-05-23 15:20:36 +01:00
parent 10040332ed
commit f0a51237de
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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";
}); });