Merge https://github.com/friendica/friendica into pull
|
@ -326,7 +326,7 @@ function check_form_security_token($typename = '', $formname = 'form_security_to
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_form_security_std_err_msg() {
|
function check_form_security_std_err_msg() {
|
||||||
return t('The form security token was not correct. This probably happened because the form has been opened for too long (>3 hours) before subitting it.') . EOL;
|
return t('The form security token was not correct. This probably happened because the form has been opened for too long (>3 hours) before submitting it.') . EOL;
|
||||||
}
|
}
|
||||||
function check_form_security_token_redirectOnErr($err_redirect, $typename = '', $formname = 'form_security_token') {
|
function check_form_security_token_redirectOnErr($err_redirect, $typename = '', $formname = 'form_security_token') {
|
||||||
if (!check_form_security_token($typename, $formname)) {
|
if (!check_form_security_token($typename, $formname)) {
|
||||||
|
@ -344,4 +344,4 @@ function check_form_security_token_ForbiddenOnErr($typename = '', $formname = 'f
|
||||||
header('HTTP/1.1 403 Forbidden');
|
header('HTTP/1.1 403 Forbidden');
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6639,7 +6639,7 @@ msgstr ""
|
||||||
#: ../../include/security.php:329
|
#: ../../include/security.php:329
|
||||||
msgid ""
|
msgid ""
|
||||||
"The form security token was not correct. This probably happened because the "
|
"The form security token was not correct. This probably happened because the "
|
||||||
"form has been opened for too long (>3 hours) before subitting it."
|
"form has been opened for too long (>3 hours) before submitting it."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../../include/Contact.php:145 ../../include/conversation.php:813
|
#: ../../include/Contact.php:145 ../../include/conversation.php:813
|
||||||
|
|
|
@ -6405,7 +6405,7 @@ msgstr "Willkommen zurück "
|
||||||
#: ../../include/security.php:329
|
#: ../../include/security.php:329
|
||||||
msgid ""
|
msgid ""
|
||||||
"The form security token was not correct. This probably happened because the "
|
"The form security token was not correct. This probably happened because the "
|
||||||
"form has been opened for too long (>3 hours) before subitting it."
|
"form has been opened for too long (>3 hours) before submitting it."
|
||||||
msgstr "Der Formular-Sicherheits-Token war nicht korrekt. Der Grund ist wahrscheinlich, dass das Formular zu lange (>3 Stunden) offen war, bevor es abgeschickt wurde."
|
msgstr "Der Formular-Sicherheits-Token war nicht korrekt. Der Grund ist wahrscheinlich, dass das Formular zu lange (>3 Stunden) offen war, bevor es abgeschickt wurde."
|
||||||
|
|
||||||
#: ../../include/Contact.php:137 ../../include/conversation.php:813
|
#: ../../include/Contact.php:137 ../../include/conversation.php:813
|
||||||
|
|
|
@ -1441,7 +1441,7 @@ $a->strings["image/photo"] = "Bild/Foto";
|
||||||
$a->strings["Welcome "] = "Willkommen ";
|
$a->strings["Welcome "] = "Willkommen ";
|
||||||
$a->strings["Please upload a profile photo."] = "Bitte lade ein Profilbild hoch.";
|
$a->strings["Please upload a profile photo."] = "Bitte lade ein Profilbild hoch.";
|
||||||
$a->strings["Welcome back "] = "Willkommen zurück ";
|
$a->strings["Welcome back "] = "Willkommen zurück ";
|
||||||
$a->strings["The form security token was not correct. This probably happened because the form has been opened for too long (>3 hours) before subitting it."] = "Der Formular-Sicherheits-Token war nicht korrekt. Der Grund ist wahrscheinlich, dass das Formular zu lange (>3 Stunden) offen war, bevor es abgeschickt wurde.";
|
$a->strings["The form security token was not correct. This probably happened because the form has been opened for too long (>3 hours) before submitting it."] = "Der Formular-Sicherheits-Token war nicht korrekt. Der Grund ist wahrscheinlich, dass das Formular zu lange (>3 Stunden) offen war, bevor es abgeschickt wurde.";
|
||||||
$a->strings["View status"] = "Status anzeigen";
|
$a->strings["View status"] = "Status anzeigen";
|
||||||
$a->strings["View profile"] = "Profil anzeigen";
|
$a->strings["View profile"] = "Profil anzeigen";
|
||||||
$a->strings["View photos"] = "Fotos ansehen";
|
$a->strings["View photos"] = "Fotos ansehen";
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
|
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-edit-photo-end"></div>
|
<div class="comment-edit-photo-end"></div>
|
||||||
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);" onBlur="commentClose(this,$id);" >$comment</textarea>
|
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);tautogrow($id)" onBlur="commentClose(this,$id);" >$comment</textarea>
|
||||||
<a class="icon bb-image" onclick="insertFormatting('$comment','img',$id);">img</a>
|
<a class="icon bb-image" onclick="insertFormatting('$comment','img',$id);">img</a>
|
||||||
<a class="icon bb-url" onclick="insertFormatting('$comment','url',$id);">url</a>
|
<a class="icon bb-url" onclick="insertFormatting('$comment','url',$id);">url</a>
|
||||||
<a class="icon bb-video" onclick="insertFormatting('$comment','video',$id);">video</a>
|
<a class="icon bb-video" onclick="insertFormatting('$comment','video',$id);">video</a>
|
||||||
|
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 762 B |
Before Width: | Height: | Size: 685 B After Width: | Height: | Size: 685 B |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 366 B |
Before Width: | Height: | Size: 697 B After Width: | Height: | Size: 697 B |
Before Width: | Height: | Size: 901 B After Width: | Height: | Size: 901 B |
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 579 B |
Before Width: | Height: | Size: 579 B After Width: | Height: | Size: 579 B |
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 795 B After Width: | Height: | Size: 795 B |
Before Width: | Height: | Size: 795 B After Width: | Height: | Size: 795 B |
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 353 B |
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 472 B After Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 505 B After Width: | Height: | Size: 505 B |
|
@ -0,0 +1,46 @@
|
||||||
|
(function($) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Auto-growing textareas; technique ripped from Facebook
|
||||||
|
*/
|
||||||
|
$.fn.autogrow = function(options) {
|
||||||
|
|
||||||
|
this.filter('textarea').each(function() {
|
||||||
|
|
||||||
|
var $this = $(this),
|
||||||
|
minHeight = $this.height(),
|
||||||
|
lineHeight = $this.css('lineHeight');
|
||||||
|
|
||||||
|
var shadow = $('<div></div>').css({
|
||||||
|
position: 'absolute',
|
||||||
|
top: -10000,
|
||||||
|
left: -10000,
|
||||||
|
width: $(this).width(),
|
||||||
|
fontSize: $this.css('fontSize'),
|
||||||
|
fontFamily: $this.css('fontFamily'),
|
||||||
|
lineHeight: $this.css('lineHeight'),
|
||||||
|
resize: 'none'
|
||||||
|
}).appendTo(document.body);
|
||||||
|
|
||||||
|
var update = function() {
|
||||||
|
|
||||||
|
var val = this.value.replace(/</g, '<')
|
||||||
|
.replace(/>/g, '>')
|
||||||
|
.replace(/&/g, '&')
|
||||||
|
.replace(/\n/g, '<br/>');
|
||||||
|
|
||||||
|
shadow.html(val);
|
||||||
|
$(this).css('height', Math.max(shadow.height() + 20, minHeight));
|
||||||
|
}
|
||||||
|
|
||||||
|
$(this).change(update).keyup(update).keydown(update);
|
||||||
|
|
||||||
|
update.apply(this);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return this;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
})(jQuery);
|
|
@ -292,6 +292,10 @@ $a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></scrip
|
||||||
$imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/js/jquery.ae.image.resize.js";
|
$imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/js/jquery.ae.image.resize.js";
|
||||||
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $imageresizeJS);
|
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $imageresizeJS);
|
||||||
|
|
||||||
|
//load jquery.autogrow-textarea.js
|
||||||
|
$autogrowJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-aerith/js/jquery.autogrow.textarea.js";
|
||||||
|
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $autogrowJS);
|
||||||
|
|
||||||
//js scripts
|
//js scripts
|
||||||
//comment-edit-wrapper on photo_view
|
//comment-edit-wrapper on photo_view
|
||||||
if ($a->argv[0].$a->argv[2] === "photos"."image"){
|
if ($a->argv[0].$a->argv[2] === "photos"."image"){
|
||||||
|
@ -315,6 +319,15 @@ $a->page['htmlhead'] .= '
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>';
|
</script>';
|
||||||
|
|
||||||
|
$a->page['htmlhead'] .= '
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function tautogrow(id){
|
||||||
|
$("textarea#comment-edit-text-" +id).autogrow();
|
||||||
|
};
|
||||||
|
</script>';
|
||||||
|
|
||||||
$a->page['htmlhead'] .= '
|
$a->page['htmlhead'] .= '
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
|
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-edit-photo-end"></div>
|
<div class="comment-edit-photo-end"></div>
|
||||||
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);" onBlur="commentClose(this,$id);" >$comment</textarea>
|
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);tautogrow($id)" onBlur="commentClose(this,$id);" >$comment</textarea>
|
||||||
<a class="icon bb-image" onclick="insertFormatting('$comment','img',$id);">img</a>
|
<a class="icon bb-image" onclick="insertFormatting('$comment','img',$id);">img</a>
|
||||||
<a class="icon bb-url" onclick="insertFormatting('$comment','url',$id);">url</a>
|
<a class="icon bb-url" onclick="insertFormatting('$comment','url',$id);">url</a>
|
||||||
<a class="icon bb-video" onclick="insertFormatting('$comment','video',$id);">video</a>
|
<a class="icon bb-video" onclick="insertFormatting('$comment','video',$id);">video</a>
|
||||||
|
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 762 B |
Before Width: | Height: | Size: 685 B After Width: | Height: | Size: 685 B |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 549 B After Width: | Height: | Size: 549 B |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 366 B |
Before Width: | Height: | Size: 697 B After Width: | Height: | Size: 697 B |
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
Before Width: | Height: | Size: 300 B After Width: | Height: | Size: 300 B |
Before Width: | Height: | Size: 727 B After Width: | Height: | Size: 727 B |
Before Width: | Height: | Size: 608 B After Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 353 B |
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 472 B After Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 505 B After Width: | Height: | Size: 505 B |
|
@ -0,0 +1,46 @@
|
||||||
|
(function($) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Auto-growing textareas; technique ripped from Facebook
|
||||||
|
*/
|
||||||
|
$.fn.autogrow = function(options) {
|
||||||
|
|
||||||
|
this.filter('textarea').each(function() {
|
||||||
|
|
||||||
|
var $this = $(this),
|
||||||
|
minHeight = $this.height(),
|
||||||
|
lineHeight = $this.css('lineHeight');
|
||||||
|
|
||||||
|
var shadow = $('<div></div>').css({
|
||||||
|
position: 'absolute',
|
||||||
|
top: -10000,
|
||||||
|
left: -10000,
|
||||||
|
width: $(this).width(),
|
||||||
|
fontSize: $this.css('fontSize'),
|
||||||
|
fontFamily: $this.css('fontFamily'),
|
||||||
|
lineHeight: $this.css('lineHeight'),
|
||||||
|
resize: 'none'
|
||||||
|
}).appendTo(document.body);
|
||||||
|
|
||||||
|
var update = function() {
|
||||||
|
|
||||||
|
var val = this.value.replace(/</g, '<')
|
||||||
|
.replace(/>/g, '>')
|
||||||
|
.replace(/&/g, '&')
|
||||||
|
.replace(/\n/g, '<br/>');
|
||||||
|
|
||||||
|
shadow.html(val);
|
||||||
|
$(this).css('height', Math.max(shadow.height() + 20, minHeight));
|
||||||
|
}
|
||||||
|
|
||||||
|
$(this).change(update).keyup(update).keydown(update);
|
||||||
|
|
||||||
|
update.apply(this);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return this;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
})(jQuery);
|
|
@ -290,6 +290,10 @@ $a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></scrip
|
||||||
$imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-blue/js/jquery.ae.image.resize.js";
|
$imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-blue/js/jquery.ae.image.resize.js";
|
||||||
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $imageresizeJS);
|
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $imageresizeJS);
|
||||||
|
|
||||||
|
//load jquery.autogrow-textarea.js
|
||||||
|
$autogrowJS = $a->get_baseurl($ssl_state)."/view/theme/diabook-blue/js/jquery.autogrow.textarea.js";
|
||||||
|
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $autogrowJS);
|
||||||
|
|
||||||
//js scripts
|
//js scripts
|
||||||
//comment-edit-wrapper on photo_view
|
//comment-edit-wrapper on photo_view
|
||||||
if ($a->argv[0].$a->argv[2] === "photos"."image"){
|
if ($a->argv[0].$a->argv[2] === "photos"."image"){
|
||||||
|
@ -314,6 +318,15 @@ $a->page['htmlhead'] .= '
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>';
|
</script>';
|
||||||
|
|
||||||
|
$a->page['htmlhead'] .= '
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
function tautogrow(id){
|
||||||
|
$("textarea#comment-edit-text-" +id).autogrow();
|
||||||
|
};
|
||||||
|
</script>';
|
||||||
|
|
||||||
$a->page['htmlhead'] .= '
|
$a->page['htmlhead'] .= '
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
|
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-edit-photo-end"></div>
|
<div class="comment-edit-photo-end"></div>
|
||||||
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);" onBlur="commentClose(this,$id);" >$comment</textarea>
|
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);tautogrow($id)" onBlur="commentClose(this,$id);" >$comment</textarea>
|
||||||
<a class="icon bb-image" onclick="insertFormatting('$comment','img',$id);">img</a>
|
<a class="icon bb-image" onclick="insertFormatting('$comment','img',$id);">img</a>
|
||||||
<a class="icon bb-url" onclick="insertFormatting('$comment','url',$id);">url</a>
|
<a class="icon bb-url" onclick="insertFormatting('$comment','url',$id);">url</a>
|
||||||
<a class="icon bb-video" onclick="insertFormatting('$comment','video',$id);">video</a>
|
<a class="icon bb-video" onclick="insertFormatting('$comment','video',$id);">video</a>
|
||||||
|
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 762 B |
Before Width: | Height: | Size: 685 B After Width: | Height: | Size: 685 B |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 588 B After Width: | Height: | Size: 588 B |
Before Width: | Height: | Size: 549 B After Width: | Height: | Size: 549 B |