This commit is contained in:
tianshujie98
2021-04-21 11:00:42 +08:00
parent ca41001014
commit 23ebc8f532
+3 -1
View File
@@ -186,7 +186,9 @@ function setPreview()
{
storyLink = createLink('story', 'view', "storyID=" + $('#story').val());
var concat = config.requestType != 'GET' ? '?' : '&';
storyLink = storyLink + concat + 'onlybody=yes';
if(storyLink.indexOf("onlybody=yes") < 0) storyLink = storyLink + concat + 'onlybody=yes';
$('#preview').removeClass('hidden');
$('#preview a').attr('href', storyLink);
$('#copyButton').removeClass('hidden');