From efe308b5ac9ac7e8d399fb880f31b6967de8fec1 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Fri, 6 Jan 2012 09:11:25 +0100 Subject: [PATCH] Use html5 placeholder for title text input --- include/conversation.php | 3 ++- view/jot-header.tpl | 32 ------------------------------- view/theme/darkzero/style.css | 18 +++++++++++++++++ view/theme/duepuntozero/jot.tpl | 25 ++++++++++-------------- view/theme/duepuntozero/style.css | 32 ++++++++++++++++++------------- 5 files changed, 49 insertions(+), 61 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 37fe32de12..2803d14e42 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -873,6 +873,7 @@ function status_editor($a,$x, $notes_cid = 0) { '$placeholdertitle' => t('Set title'), '$wait' => t('Please wait'), '$permset' => t('Permission settings'), + '$shortpermset' => t('permissions'), '$ptyp' => (($notes_cid) ? 'note' : 'wall'), '$content' => '', '$post_id' => '', @@ -962,4 +963,4 @@ function find_thread_parent_index($arr,$x) { if($v['id'] == $x['parent']) return $k; return false; -} \ No newline at end of file +} diff --git a/view/jot-header.tpl b/view/jot-header.tpl index cdef9ef832..352c48647e 100644 --- a/view/jot-header.tpl +++ b/view/jot-header.tpl @@ -113,42 +113,10 @@ function enableOnUser(){ $(document).ready(function() { -<<<<<<< HEAD /* enable tinymce on focus and click */ $("#profile-jot-text").focus(enableOnUser); $("#profile-jot-text").click(enableOnUser); -======= - /* enable tinymce on focus */ - $("#profile-jot-text").focus(function(){ - if (editor) return; - $(this).val(""); - initEditor(); - }); - $("#jot-title").mouseout(function() { - $("#jot-title").hide(); - var ttl = $("#jot-title").val(); - $('#jot-title-display').html(ttl); - if(ttl.length) { - $("#jot-title-display").show(); - } - else { - $("#jot-title-desc").show(); - } - }); - - $("#jot-title-display").hover(function() { - $("#jot-title-display").hide(); - $("#jot-title").show(); - $("#jot-title").focus(); - }); - - $("#jot-title-desc").click(function() { - $("#jot-title-desc").hide(); - $("#jot-title").show(); - $("#jot-title").focus(); - }); ->>>>>>> friendica/master var uploader = new window.AjaxUpload( 'wall-image-upload', diff --git a/view/theme/darkzero/style.css b/view/theme/darkzero/style.css index 1aa1efe870..25ae0c71ff 100644 --- a/view/theme/darkzero/style.css +++ b/view/theme/darkzero/style.css @@ -70,3 +70,21 @@ input#dfrn-url { color: #000088; } +#jot-perms-icon { + float: left; +} + + +#jot-title { + background-color: #333333; + border: 1px solid #333333; +} + +#jot-title::-webkit-input-placeholder{ color: #555555!important;} +#jot-title:-moz-placeholder{color: #555555!important;} + + +#jot-title:hover, +#jot-title:focus { + border: 1px solid #cccccc; +} diff --git a/view/theme/duepuntozero/jot.tpl b/view/theme/duepuntozero/jot.tpl index 36008c5a1e..e6ea1c1bd2 100644 --- a/view/theme/duepuntozero/jot.tpl +++ b/view/theme/duepuntozero/jot.tpl @@ -14,42 +14,37 @@ -
- - - -
- + {{ if $content }}{{ endif }} -