aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-04-04 15:34:55 +0000
committerMario <mario@mariovavti.com>2025-04-04 15:34:55 +0000
commita16e024b51af4f90d0640ce02571b096c8b18788 (patch)
tree86a451bd376bca35304175de1f83a81c6bab9767
parent860de5e28e718b122bb69ed6c01347645f558beb (diff)
downloadvolse-hubzilla-a16e024b51af4f90d0640ce02571b096c8b18788.tar.gz
volse-hubzilla-a16e024b51af4f90d0640ce02571b096c8b18788.tar.bz2
volse-hubzilla-a16e024b51af4f90d0640ce02571b096c8b18788.zip
cleanup
-rw-r--r--Zotlabs/Module/Embedphotos.php2
-rw-r--r--view/tpl/jot-header.tpl122
2 files changed, 58 insertions, 66 deletions
diff --git a/Zotlabs/Module/Embedphotos.php b/Zotlabs/Module/Embedphotos.php
index 5c6038686..edf2d162a 100644
--- a/Zotlabs/Module/Embedphotos.php
+++ b/Zotlabs/Module/Embedphotos.php
@@ -77,7 +77,7 @@ class Embedphotos extends \Zotlabs\Web\Controller {
$ext = EMPTY_STR;
$output = '[zrl=' . z_root() . '/photos/' . $channel['channel_address'] . '/image/' . $resource . ']' .
- '[zmg=' . z_root() . '/photo/' . $resource . '-' . $resolution . $ext . ']' . $filename . '[/zmg][/zrl]';
+ '[zmg=' . z_root() . '/photo/' . $resource . '-' . $resolution . $ext . ']' . $filename . '[/zmg][/zrl]' . "\r\n";
return $output;
}
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index c84a9c1e2..1cb774c7c 100644
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -1,55 +1,55 @@
-<script language="javascript" type="text/javascript">
-
-var editor = false;
-var plaintext = '{{$editselect}}';
-var pretext = '{{$pretext}}';
-
-function initEditor(cb){
- if(editor == false){
- $("#profile-jot-text-loading").show();
- $("#profile-jot-tools").removeClass('d-none');
- {{$geotag}}
- if(plaintext == 'none') {
- $("#profile-jot-text-loading").hide();
- $(".jothidden").show();
- $("#profile-jot-text").addClass('jot-expanded');
- {{if $bbco_autocomplete}}
- $("#profile-jot-text").bbco_autocomplete('{{$bbco_autocomplete}}'); // autocomplete bbcode
- {{/if}}
- {{if $editor_autocomplete}}
- if(typeof channelId === 'undefined')
- $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
- else
- $("#profile-jot-text").editor_autocomplete(baseurl+"/acl",[channelId]); // Also gives suggestions from current channel's connections
- {{/if}}
- editor = true;
- if (typeof cb!="undefined") cb();
- if(pretext.length)
- addeditortext(pretext);
- return;
- }
- editor = true;
- } else {
- if (typeof cb!="undefined") cb();
- }
-}
-
-function enableOnUser(){
- if(editor)
- return;
-
- initEditor();
-}
-</script>
-
<script src="vendor/blueimp/jquery-file-upload/js/vendor/jquery.ui.widget.js"></script>
<script src="vendor/blueimp/jquery-file-upload/js/jquery.iframe-transport.js"></script>
<script src="vendor/blueimp/jquery-file-upload/js/jquery.fileupload.js"></script>
<script>
+
+ var editor = false;
+ var plaintext = '{{$editselect}}';
+ var pretext = '{{$pretext}}';
+
var activeCommentID = 0;
var activeCommentText = '';
+ var postSaveTimer = null;
+
+ function initEditor(cb){
+ if(editor == false){
+ $("#profile-jot-text-loading").show();
+ $("#profile-jot-tools").removeClass('d-none');
+ {{$geotag}}
+ if(plaintext == 'none') {
+ $("#profile-jot-text-loading").hide();
+ $(".jothidden").show();
+ $("#profile-jot-text").addClass('jot-expanded');
+ {{if $bbco_autocomplete}}
+ $("#profile-jot-text").bbco_autocomplete('{{$bbco_autocomplete}}'); // autocomplete bbcode
+ {{/if}}
+ {{if $editor_autocomplete}}
+ if(typeof channelId === 'undefined')
+ $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
+ else
+ $("#profile-jot-text").editor_autocomplete(baseurl+"/acl",[channelId]); // Also gives suggestions from current channel's connections
+ {{/if}}
+ editor = true;
+ if (typeof cb!="undefined") cb();
+ if(pretext.length)
+ addeditortext(pretext);
+ return;
+ }
+ editor = true;
+ } else {
+ if (typeof cb!="undefined") cb();
+ }
+ }
+
+ function enableOnUser(){
+ if(editor)
+ return;
+
+ initEditor();
+ }
+
$(document).ready(function() {
$("#profile-jot-text").focus(enableOnUser);
@@ -605,28 +605,21 @@ function enableOnUser(){
$(this).closest('.jot-poll-option').remove();
}
-</script>
-
-<script>
-$( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-delete-link,.block-delete-link", function(e) {
- var link = $(this).attr("href"); // "get" the intended link in a var
-
- if (typeof(eval($.fn.modal)) === 'function'){
- e.preventDefault();
- bootbox.confirm("<h4>{{$confirmdelete}}</h4>",function(result) {
- if (result) {
- document.location.href = link;
- }
- });
- } else {
- return confirm("{{$confirmdelete}}");
- }
-});
-</script>
+ $( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-delete-link,.block-delete-link", function(e) {
+ var link = $(this).attr("href"); // "get" the intended link in a var
-<script>
- var postSaveTimer = null;
+ if (typeof(eval($.fn.modal)) === 'function'){
+ e.preventDefault();
+ bootbox.confirm("<h4>{{$confirmdelete}}</h4>",function(result) {
+ if (result) {
+ document.location.href = link;
+ }
+ });
+ } else {
+ return confirm("{{$confirmdelete}}");
+ }
+ });
function postSaveChanges(action) {
if({{$auto_save_draft}}) {
@@ -666,7 +659,6 @@ $( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-del
}
$(document).ready(function() {
-
var cleaned = false;
if({{$auto_save_draft}}) {