]> git.mxchange.org Git - friendica.git/commitdiff
title fixups
authorfriendica <info@friendica.com>
Fri, 6 Jan 2012 11:59:05 +0000 (03:59 -0800)
committerfriendica <info@friendica.com>
Fri, 6 Jan 2012 11:59:05 +0000 (03:59 -0800)
view/jot-header.tpl
view/theme/duepuntozero/jot.tpl
view/theme/duepuntozero/style.css
view/theme/testbubble/jot-header.tpl
view/theme/testbubble/jot.tpl
view/theme/testbubble/style.css

index 352c48647e04a0032609239b3a36a1d1b6210261..d998e977a40ab3852d60cbe26c371ea6bd3efae5 100644 (file)
@@ -7,7 +7,6 @@ var textlen = 0;
 function initEditor(cb){
        if (editor==false){
                $("#profile-jot-text-loading").show();  
-               $("#jot-title-desc").show();
                tinyMCE.init({
                        theme : "advanced",
                        mode : "specific_textareas",
@@ -196,14 +195,6 @@ function enableOnUser(){
                }
        }
 
-       function jotTitle() {
-               reply = prompt("$title", $('#jot-title').val());
-               if(reply && reply.length) {
-                       $('#jot-title').val(reply);
-               }
-       }
-
-
        function jotShare(id) {
                $('#like-rotator-' + id).show();
                $.get('share/' + id, function(data) {
index 74027846c58b281a2bdcec933199458801ce6c74..6a105e1da4912276b7eb4f64e3e8c22e2e35541a 100644 (file)
@@ -21,6 +21,8 @@
                {{ if $content }}<script>initEditor();</script>{{ endif }}
 
 <div id="profile-jot-submit-wrapper" class="jothidden">
+       <input type="submit" id="profile-jot-submit" name="submit" value="$share" />
+
        <div id="profile-upload-wrapper" style="display: $visitor;" >
                <div id="wall-image-upload-div" ><a href="#" onclick="return false;" id="wall-image-upload" class="icon camera" title="$upload"></a></div>
        </div> 
@@ -46,7 +48,6 @@
        <div id="profile-jot-perms" class="profile-jot-perms" style="display: $pvisit;" >
                <a href="#profile-jot-acl-wrapper" id="jot-perms-icon" class="icon $lockstate"  title="$permset" ></a>$bang
        </div>
-<input type="submit" id="profile-jot-submit" name="submit" value="$share" />
        <div id="profile-jot-perms-end"></div>
 
        <div id="profile-jot-plugin-wrapper">
index 790867d5ca549d0194acd12d6b130b5b11c7b342..ab729b9da31d343221785e0a57af6d6f6aaf428d 100644 (file)
@@ -274,7 +274,8 @@ div.wall-item-content-wrapper.shiny {
        border: 0px;
        margin: 0px;
        height: 20px;
-       width: 465px;
+       width: 530px;
+       margin-bottom: 5px;
        font-weight: bold;
        border: 1px solid #ffffff;
 }
index 7b2dca9fe9d3331f7e13c275ecd0ebe053df64c8..18f07970c2230a62e3e4a9332796ae7e8024ae75 100644 (file)
@@ -8,7 +8,6 @@ var textlen = 0;
 function initEditor(cb) {
     if (editor==false) {
         $("#profile-jot-text-loading").show();
-               $("#jot-title-desc").show();
         tinyMCE.init({
                 theme : "advanced",
                 mode : "specific_textareas",
@@ -85,6 +84,7 @@ function initEditor(cb) {
                         ed.onInit.add(function(ed) {
                                 ed.pasteAsPlainText = true;
                                                                $("#profile-jot-text-loading").hide();
+                                                               $(".jothidden").show();
                                    $("#profile-jot-submit-wrapper").show();
                                                                {{ if $newpost }}
                                    $("#profile-upload-wrapper").show();
@@ -125,30 +125,6 @@ function initEditor(cb) {
                 }); 
 
 
-               $("#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();
-               });             
-
                var uploader = new window.AjaxUpload(
                        'wall-image-upload',
                        { action: 'wall_upload/$nickname',
index fa655a13e28eb62895030f54d2aabbb312139838..feffea9d8b432abecc9a7fd4b556c3c786500e70 100644 (file)
                <input type="hidden" name="coord" id="jot-coord" value="" />
                <input type="hidden" name="post_id" value="$post_id" />
                <input type="hidden" name="preview" id="jot-preview" value="0" />
-
-               <div id="jot-title-wrapper">
-        <span id="jot-title-desc" style="display: none;">$addtitle</span>
-               <span id="jot-title-display" style="display: none;"></span>
-        <input type="text" name="title" id="jot-title" value="" style="display: none;" />
-        </div>
+               <input name="title" id="jot-title" type="text" placeholder="$placeholdertitle" value="$title" class="jothidden" style="display:none">
 
                 <img id="profile-jot-text-loading" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
                 <textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" >{{ if $content }}$content{{ else }}$share{{ endif }}</textarea>
index 28fb0ae455d70f1513c290604837bc50a32d93e3..a17d702c1cd86bd26641456a8b9a48e704a0f083 100644 (file)
@@ -761,21 +761,23 @@ ul .sidebar-group-li .icon{
 #profile-jot-submit-wrapper { 
 }
 
-#jot-title-desc {
-       color: #cccccc;
-}
-
-#jot-title-wrapper {
-       margin-bottom: 5px;
-}
 
 #jot-title {
-       border: 1px solid #cccccc;
-       width: 460px;
+       border: 0px;
+       margin: 0px;
+       height: 20px;
+       width: 462px;
+       font-weight: bold;
+       border: 1px solid #ffffff;
 }
 
-#jot-title-display {
-       font-weight: bold;
+#jot-title::-webkit-input-placeholder{font-weight: normal;}
+#jot-title:-moz-placeholder{font-weight: normal;}
+               
+       
+#jot-title:hover,
+#jot-title:focus {
+       border: 1px solid #cccccc; 
 }
 
 #profile-jot-perms, #profile-jot-submit {