From: Hypolite Petovan Date: Sat, 7 Jan 2017 15:06:03 +0000 (+1100) Subject: Use placeholder attribute for Share message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6ce646d71b0175a5ebe162109c91b565b5363ca;p=friendica.git Use placeholder attribute for Share message --- diff --git a/view/templates/jot.tpl b/view/templates/jot.tpl index a3600c3ff5..e4692a8bba 100644 --- a/view/templates/jot.tpl +++ b/view/templates/jot.tpl @@ -25,7 +25,7 @@ {{/if}}
- +
diff --git a/view/theme/frio/js/textedit.js b/view/theme/frio/js/textedit.js index 2423171ec4..73f7c9ec91 100644 --- a/view/theme/frio/js/textedit.js +++ b/view/theme/frio/js/textedit.js @@ -119,21 +119,16 @@ function commentCloseUI(obj, id) { $(document).bind( "click.commentClose", handler ); } -// test if there is default content in the jot text box and remove it function jotTextOpenUI(obj) { - if(obj.value == aStr.share) { - obj.value = ''; + if (obj.value == '') { $(".modal-body #profile-jot-text").addClass("profile-jot-text-full").removeClass("profile-jot-text-empty"); // initiale autosize for the jot autosize($(".modal-body #profile-jot-text")); } } -// insert default content into the jot text box -// if it's empty function jotTextCloseUI(obj) { - if(obj.value === '') { - obj.value = aStr.share; + if (obj.value === '') { $(".modal-body #profile-jot-text").removeClass("profile-jot-text-full").addClass("profile-jot-text-empty"); // destroy the automatic textarea resizing autosize.destroy($(".modal-body #profile-jot-text")); diff --git a/view/theme/frio/templates/jot.tpl b/view/theme/frio/templates/jot.tpl index bcf0021323..90d17f6c47 100644 --- a/view/theme/frio/templates/jot.tpl +++ b/view/theme/frio/templates/jot.tpl @@ -62,7 +62,7 @@ {{* The jot text field in which the post text is inserted *}}
- +