Create new Post/Share module class
This commit is contained in:
parent
119f9d9d27
commit
8124dedbf6
5 changed files with 86 additions and 9 deletions
|
@ -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(){
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue