mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:10:11 +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
|
@ -835,8 +835,7 @@ function cmtBbClose(id) {
|
|||
}
|
||||
|
||||
function commentOpen(obj,id) {
|
||||
if(obj.value == window.commentEmptyText) {
|
||||
obj.value = "";
|
||||
if (obj.value == "") {
|
||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
|
||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
|
||||
$("#mod-cmnt-wrap-" + id).show();
|
||||
|
@ -844,8 +843,7 @@ function commentOpen(obj,id) {
|
|||
}
|
||||
}
|
||||
function commentClose(obj,id) {
|
||||
if(obj.value == "") {
|
||||
obj.value = window.commentEmptyText;
|
||||
if (obj.value == "") {
|
||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
|
||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
|
||||
$("#mod-cmnt-wrap-" + id).hide();
|
||||
|
@ -856,8 +854,7 @@ function commentClose(obj,id) {
|
|||
|
||||
function commentInsert(obj,id) {
|
||||
var tmpStr = $("#comment-edit-text-" + id).val();
|
||||
if(tmpStr == window.commentEmptyText) {
|
||||
tmpStr = "";
|
||||
if (tmpStr == "") {
|
||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
|
||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
|
||||
openMenu("comment-edit-submit-wrapper-" + id);
|
||||
|
@ -872,8 +869,7 @@ function commentInsert(obj,id) {
|
|||
|
||||
function qCommentInsert(obj,id) {
|
||||
var tmpStr = $("#comment-edit-text-" + id).val();
|
||||
if(tmpStr == window.commentEmptyText) {
|
||||
tmpStr = "";
|
||||
if (tmpStr == "") {
|
||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-full");
|
||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
|
||||
openMenu("comment-edit-submit-wrapper-" + id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue