1
0
Fork 0

Create new Post/Share module class

This commit is contained in:
Hypolite Petovan 2022-11-04 13:01:25 -04:00
commit 8124dedbf6
5 changed files with 86 additions and 9 deletions

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(){

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);
});
});
}