mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-18 02:20:49 +01:00
disable fork button during fork #3535
This commit is contained in:
@@ -53,6 +53,7 @@ define('forum/topic/fork', ['components'], function(components) {
|
||||
}
|
||||
|
||||
function createTopicFromPosts() {
|
||||
forkCommit.attr('disabled', true);
|
||||
socket.emit('topics.createTopicFromPosts', {
|
||||
title: forkModal.find('#fork-title').val(),
|
||||
pids: pids
|
||||
@@ -62,7 +63,7 @@ define('forum/topic/fork', ['components'], function(components) {
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
|
||||
forkCommit.removeAttr('disabled');
|
||||
if (err) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
@@ -116,7 +117,7 @@ define('forum/topic/fork', ['components'], function(components) {
|
||||
}
|
||||
|
||||
function checkForkButtonEnable() {
|
||||
if(forkModal.find('#fork-title').length && pids.length) {
|
||||
if (forkModal.find('#fork-title').length && pids.length) {
|
||||
forkCommit.removeAttr('disabled');
|
||||
} else {
|
||||
forkCommit.attr('disabled', true);
|
||||
|
||||
Reference in New Issue
Block a user