mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
closes #1718
This commit is contained in:
@@ -78,7 +78,12 @@ define('forum/topic/threadTools', ['forum/topic/fork', 'forum/topic/move'], func
|
|||||||
|
|
||||||
setFollowState(state);
|
setFollowState(state);
|
||||||
|
|
||||||
app.alertSuccess(state ? '[[topic:following_topic.message]]' : '[[topic:not_following_topic.message]]');
|
app.alert({
|
||||||
|
alert_id: 'follow_thread',
|
||||||
|
message: state ? '[[topic:following_topic.message]]' : '[[topic:not_following_topic.message]]',
|
||||||
|
type: 'success',
|
||||||
|
timeout: 5000
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ define('alerts', function() {
|
|||||||
alert.find('p').html(params.message);
|
alert.find('p').html(params.message);
|
||||||
alert.attr('class', 'alert alert-dismissable alert-' + params.type);
|
alert.attr('class', 'alert alert-dismissable alert-' + params.type);
|
||||||
|
|
||||||
clearTimeout(alert.attr('timeoutId'));
|
clearTimeout(parseInt(alert.attr('timeoutId'), 10));
|
||||||
startTimeout(alert, params.timeout);
|
startTimeout(alert, params.timeout);
|
||||||
|
|
||||||
alert.children().fadeOut(100);
|
alert.children().fadeOut(100);
|
||||||
|
|||||||
Reference in New Issue
Block a user