Merge branch 'pull'

This commit is contained in:
friendica 2012-03-04 13:39:53 -08:00
commit 4b1f3555f1
3 changed files with 87 additions and 44 deletions

View file

@ -104,34 +104,6 @@ function initEditor(cb) {
$(".jothidden").show(); $(".jothidden").show();
if (typeof cb!="undefined") { cb(); } if (typeof cb!="undefined") { cb(); }
// character count part deux
//
// get # of chars
var textlen = $('#profile-jot-text').val().length();
$('#character-counter').html(textlen);
$('#profile-jot-text').keyup(function() {
$('#character-counter').removeClass('jothidden');
if(textlen <= 140) {
$('#character-counter').removeClass('red');
$('#character-counter').removeClass('orange');
$('#character-counter').addClass('grey');
}
if((textlen > 140) && (textlen <= 420)) {
$('#character-counter').removeClass('grey');
$('#character-counter').removeClass('red');
$('#character-counter').addClass('orange');
}
if(textlen > 420) {
$('#character-counter').removeClass('grey');
$('#character-counter').removeClass('orange');
$('#character-counter').addClass('red');
}
// get new len
$('#character-counter').html($(this).val().length);
});
}); });
} }
}); });
@ -146,10 +118,38 @@ function initEditor(cb) {
} }
} }
function charCounter() {
// character count part deux
$('#profile-jot-text').keyup(function(event) {
var textlen = $(this).val().length();
var maxLen1 = 140;
var maxLen2 = 420;
$('#character-counter').removeClass('jothidden');
if(textlen <= maxLen1) {
$('#character-counter').removeClass('red');
$('#character-counter').removeClass('orange');
$('#character-counter').addClass('grey');
}
if((textlen > maxLen1) && (textlen <= maxLen2)) {
$('#character-counter').removeClass('grey');
$('#character-counter').removeClass('red');
$('#character-counter').addClass('orange');
}
if(textlen > maxLen2) {
$('#character-counter').removeClass('grey');
$('#character-counter').removeClass('orange');
$('#character-counter').addClass('red');
}
$('#character-counter').html($(this).val().length);
});
}
function enableOnUser(){ function enableOnUser(){
if (editor) return; if (editor) return;
$(this).val(""); $(this).val("");
initEditor(); initEditor();
charCounter();
} }
</script> </script>

View file

@ -11,6 +11,10 @@ works -->
{{ if $nav.help }} {{ if $nav.help }}
<a id="nav-help-link" class="nav-link $nav.help.2" href="$nav.help.0" title="$nav.help.1">$nav.help.1</a> <a id="nav-help-link" class="nav-link $nav.help.2" href="$nav.help.0" title="$nav.help.1">$nav.help.1</a>
{{ endif }} {{ endif }}
{{ if $nav.community }}
<a id="nav-community-link" class="nav-link $nav.community.2"
href="$nav.community.0" title="$nav.community.1">$nav.community.1</a>
{{ endif }}
{{ if $nav.apps }} {{ if $nav.apps }}
<a id="nav-apps-link" class="nav-link $nav.apps.2" href="$nav.apps.0" title="$nav.apps.1">$nav.apps.1</a> <a id="nav-apps-link" class="nav-link $nav.apps.2" href="$nav.apps.0" title="$nav.apps.1">$nav.apps.1</a>
{{ endif }} {{ endif }}
@ -28,10 +32,6 @@ works -->
<li class="empty">$emptynotifications</li> <li class="empty">$emptynotifications</li>
</ul> </ul>
{{ endif }} {{ endif }}
{{ if $nav.community }}
<a id="nav-community-link" class="nav-link $nav.community.2"
href="$nav.community.0" title="$nav.community.1">$nav.community.1</a>
{{ endif }}
{{ if $nav.network }} {{ if $nav.network }}
<a id="nav-network-link" class="nav-link $nav.network.2" <a id="nav-network-link" class="nav-link $nav.network.2"
href="$nav.network.0" title="$nav.network.1">$nav.network.1</a> href="$nav.network.0" title="$nav.network.1">$nav.network.1</a>
@ -106,6 +106,7 @@ works -->
<a id="mail-update" class="nav-ajax-left" href="$nav.messages.0" title="$nav.messages.1"></a> <a id="mail-update" class="nav-ajax-left" href="$nav.messages.0" title="$nav.messages.1"></a>
{{ endif }} {{ endif }}
</div> </div>
</div> </div>
<a href="#" class="floaterflip"></a> <a href="#" class="floaterflip"></a>
</nav> </nav>

View file

@ -81,17 +81,18 @@ mark {
font-weight: bold; font-weight: bold;
} }
/* Redeclare monospace font family: h5bp.com/j */ /* Redeclare monospace font family: h5bp.com/j */
pre, code, kbd, samp { pre, code, kbd, samp, .wall-item-body code {
font-family: monospace, monospace; font-family: monospace, monospace;
_font-family: 'courier new', monospace; _font-family: 'courier new', monospace;
font-size: 1em; } font-size: 1em; }
/* Improve readability of pre-formatted text in all browsers */ /* Improve readability of pre-formatted text in all browsers */
pre { pre, .wall-item-body code {
white-space: pre; white-space: pre;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
} }
q { q {
quotes: none; quotes: none;
} }
@ -287,6 +288,11 @@ ul#user-menu-popup li a.nav-sep {
} }
#nav-buttons { #nav-buttons {
clear: both; clear: both;
list-style: none;
padding: 0px;
}
#nav-buttons li {
padding: 0;
} }
nav .nav-link { nav .nav-link {
float: right; float: right;
@ -469,17 +475,18 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link
width: 30px; width: 30px;
height: 19px; height: 19px;
background: transparent url(notifications.png) 0 0 no-repeat; background: transparent url(notifications.png) 0 0 no-repeat;
color: #fff; color: #222;
font-weight: bold; font-weight: bold;
font-size: 0.8em; font-size: 0.8em;
padding-top: 0.2em; padding-top: 0.2em;
text-align: center; text-align: center;
float: left; float: left;
margin-right: -4px; margin: 0 -1px 0 3px;
display: none; display: block;
visibility: hidden;
} }
.nav-ajax-update.show, .nav-ajax-left.show { .nav-ajax-update.show, .nav-ajax-left.show {
display: block; visibility: visible;
} }
#net-update { #net-update {
background-position: 0px 0px; background-position: 0px 0px;
@ -918,9 +925,12 @@ aside #viewcontacts {
#acl-deny-text-end { #acl-deny-text-end {
clear: both; clear: both;
} }
#jot-title-desc, #profile-jot-desc { #jot-title-desc {
color: #cccccc; color: #cccccc;
} }
#profile-jot-desc {
color: #a00;
}
#jot-title-wrapper { #jot-title-wrapper {
margin-bottom: 5px; margin-bottom: 5px;
} }
@ -946,9 +956,10 @@ aside #viewcontacts {
* section * section
*/ */
section { section {
margin: 20px 9% 0 9%; margin: 20px 8% 0 6%;
font-size: 0.8em; font-size: 0.8em;
padding-right: 250px; padding-right: 250px;
min-width: 475px;
} }
/** tabs **/ /** tabs **/
@ -1004,10 +1015,10 @@ section {
overflow-x: auto; overflow-x: auto;
} }
[id^="tread-wrapper"], [class^="tread-wrapper"] { [id^="tread-wrapper"], [class^="tread-wrapper"] {
margin: 5px 0; margin: 15px 0 0 0;
border: 1px #aaa solid; /*border: 1px #aaa solid;*/
border-radius: 5px; /*border-radius: 5px;*/
padding: 10px; padding: 0px;
} }
.wall-item-photo-menu { .wall-item-photo-menu {
display: none; display: none;
@ -1428,6 +1439,37 @@ div[id$="wrapper"] br {
#photos-upload-perms-menu { #photos-upload-perms-menu {
text-align: right; text-align: right;
} }
#photo-edit-caption, #photo-edit-newtag, #photo-edit-albumname {
float: left;
margin-bottom: 25px;
}
#photo-edit-link-wrap {
margin-bottom: 15px;
}
#photo-edit-caption {
width: 100%;
}
#photo-edit-newtag {
width: 100%;
}
#photo-like-div {
margin-bottom: 25px;
}
#photo-edit-caption-end, #photo-edit-tags-end, #photo-edit-albumname-end {
clear: both;
}
#photo-edit-delete-button {
margin-left: 200px;
}
#photo-edit-end {
margin-bottom: 35px;
}
#photo-caption {
font-size: 110%;
font-weight: bold;
margin-top: 15px;
margin-bottom: 15px;
}
/** /**
* message * message