From b6ce646d71b0175a5ebe162109c91b565b5363ca Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 8 Jan 2017 02:06:03 +1100 Subject: [PATCH] Use placeholder attribute for Share message --- view/templates/jot.tpl | 2 +- view/theme/frio/js/textedit.js | 9 ++------- view/theme/frio/templates/jot.tpl | 6 +----- view/theme/frost-mobile/templates/jot.tpl | 2 +- view/theme/frost/templates/jot.tpl | 2 +- view/theme/quattro/templates/jot.tpl | 2 +- view/theme/smoothly/templates/jot.tpl | 5 ++--- 7 files changed, 9 insertions(+), 19 deletions(-) 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 *}}
- +