mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
Use placeholder attribute for Comment message
- Remove global aStr.comment - Remove global window.commentEmptyText - Remove head.tpl $comment parameter
This commit is contained in:
parent
b6ce646d71
commit
b50f1f970f
20 changed files with 37 additions and 59 deletions
|
@ -121,8 +121,7 @@ var FileBrowser = {
|
|||
// work as expected (we need a way to wait until commentOpenUI would be finished).
|
||||
// As for now we insert pieces of this function here
|
||||
if ((commentElm !== null) && (typeof commentElm !== "undefined")) {
|
||||
if (commentElm.value == aStr.comment){
|
||||
commentElm.value = "";
|
||||
if (commentElm.value == "") {
|
||||
$("#comment-edit-text-" + FileBrowser.id).addClass("comment-edit-text-full").removeClass("comment-edit-text-empty");
|
||||
$("#comment-edit-submit-wrapper-" + FileBrowser.id).show();
|
||||
$("#comment-edit-text-" + FileBrowser.id).attr('tabindex','9');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue