0
0
Fork 0
mirror of https://gitlab.com/Oreolek/salet-module.git synced 2024-06-28 21:05:03 +03:00

Fixed the append vs. FX effects

This commit is contained in:
Alexander Yakovlev 2016-12-10 22:27:53 +07:00
parent 1cf8b33621
commit ff465a4003
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "salet", "name": "salet",
"version": "1.6.7", "version": "1.6.8",
"description": "A general client-side framework for cybertext interactive fiction games.", "description": "A general client-side framework for cybertext interactive fiction games.",
"keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"], "keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"],
"homepage": "http://salet.oreolek.ru", "homepage": "http://salet.oreolek.ru",

View file

@ -93,9 +93,9 @@ class SaletView
content = @prepareContent(content) content = @prepareContent(content)
block = $(elementSelector) block = $(elementSelector)
if block if block
newhtml = block.html() + markdown(content) newhtml = markdown(content)
block.promise().done(() -> block.promise().done(() ->
block.html(newhtml) block.append(newhtml)
) )
return newhtml return newhtml
else else