https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b64b18e
)
Ensure the preview parameter is set to 1 when doing a preview
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Thu, 28 Nov 2019 17:47:53 +0000
(12:47 -0500)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Thu, 28 Nov 2019 17:54:56 +0000
(12:54 -0500)
- The element #jot-preview might not exist
view/js/main.js
patch
|
blob
|
history
diff --git
a/view/js/main.js
b/view/js/main.js
index
94644c5
..
e15ee77
100644
(file)
--- a/
view/js/main.js
+++ b/
view/js/main.js
@@
-764,11
+764,10
@@
function showHideComments(id) {
}
function preview_post() {
- $("#jot-preview").val("1");
$("#jot-preview-content").show();
$.post(
"item",
- $("#profile-jot-form").serialize(),
+ $("#profile-jot-form").serialize()
+ '&preview=1'
,
function(data) {
if (data.preview) {
$("#jot-preview-content").html(data.preview);
@@
-778,7
+777,6
@@
function preview_post() {
},
"json"
);
- $("#jot-preview").val("0");
return true;
}