Create new Post/Share module class

This commit is contained in:
Hypolite Petovan
2022-11-04 13:01:25 -04:00
parent 119f9d9d27
commit 8124dedbf6
5 changed files with 86 additions and 9 deletions
+1 -1
View File
@@ -210,7 +210,7 @@
}
function jotShare(id) {
$.get('share/' + id, function(data) {
$.get('post/' + id + '/share', function(data) {
// remove the former content of the text input
$("#profile-jot-text").val("");
initEditor(function(){
+7 -7
View File
@@ -168,13 +168,13 @@ function enableOnUser(){
function jotShare(id) {
$('#like-rotator-' + id).show();
$.get('share/' + id, function(data) {
if (!editor) $("#profile-jot-text").val("");
initEditor(function(){
addeditortext(data);
$('#like-rotator-' + id).hide();
$(window).scrollTop(0);
});
$.get('post/' + id + '/share', function(data) {
if (!editor) $("#profile-jot-text").val("");
initEditor(function(){
addeditortext(data);
$('#like-rotator-' + id).hide();
$(window).scrollTop(0);
});
});
}