D
D
del9937882016-03-20 02:16:24
PHP
del993788, 2016-03-20 02:16:24

Why isn't the "Add to Bookmarks" button updating?

Hello. Now I use the 11th from dle and faced such a problem: when I bookmark a news, a dialog box appears with a message that the news has been bookmarked, but the asterisk (bookmark button) in the stock template does not light up. Its glow notifies us that we have subscribed. Although if we reload the page, we will see a burning star. By clicking on it again, a message will appear that we have removed the news from the bookmarks, but the star is still on fire. Only by refreshing the page will the state of the star be updated. How can I make the "add to bookmarks" button update without reloading? Pressed, the star lit up, pressed again, the star went out.
I gave an analogy with a star to make it clearer. Actually it looks like this for me:

[add-favorites]
добавить
[/add-favorites]
[del-favorites]
удалить
[/del-favorites]

Clicked on add, a dialog box appeared, but the button did not change. as was "add", and remained. Only when I refresh the page does it change to "delete"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-03-24
@del993788

Use {favorites} and disabled cache on the site (if you want it not to be displayed on the main page and in the categories, just add to bookmarks)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question