1
1
Fork 0

Merge branch 'pull'

This commit is contained in:
friendica 2012-03-05 13:38:06 -08:00
commit 0d9c2ca06f
5 changed files with 67 additions and 57 deletions

2
view/contact_block.tpl Executable file → Normal file
View file

@ -1,7 +1,7 @@
<div id="contact-block">
<h4 class="contact-block-h4">$contacts</h4>
{{ if $micropro }}
<a class="allcontact-link" href="viewcontacts/$nickname">$viewcontacts</a>
<a class="allcontact-link" href="contacts/$nickname">$viewcontacts</a>
<div class='contact-block-content'>
{{ for $micropro as $m }}
$m

View file

@ -20,7 +20,8 @@
</div>
<div class="contact-entry-photo-end" ></div>
<div class="contact-entry-name" id="contact-entry-name-$contact.id" >$contact.name</div>
<div class="contact-entry-details" id="contact-entry-url-$contact.id" >$contact.itemurl</div>
<div class="contact-entry-details" id="contact-entry-url-$contact.id" >
<a href="$contact.itemurl" title="$contact.itemurl">Profile URL</a></div>
<div class="contact-entry-details" id="contact-entry-network-$contact.id" >$contact.network</div>
<div class="contact-entry-end" ></div>

View file

@ -17,5 +17,7 @@
{{ endfor }}
{{ if $dropping }}
<div class="delete-checked">
<a href="#" onclick="deleteCheckedItems();return false;"><span class="icon delete"></span><span class="s22 text">$dropping</span></a>
</div>
{{ endif }}

View file

@ -1,5 +1,6 @@
<script language="javascript" type="text/javascript">
<script type="text/javascript" src="$baseurl/library/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="$baseurl/js/ajaxupload.js"></script>
<script type="text/javascript">
var editor = false;
var textlen = 0;
@ -19,15 +20,11 @@ function initEditor(cb) {
'transitionOut' : 'elastic'
});
$(".jothidden").show();
if (typeof cb!="undefined") {
cb();
}
if (typeof cb!="undefined") cb();
return;
}
tinyMCE.init({
theme : "advanced",
skin : "default",
mode : "specific_textareas",
editor_selector: $editselect,
auto_focus: "profile-jot-text",
@ -51,9 +48,8 @@ function initEditor(cb) {
setup : function(ed) {
cPopup = null;
ed.onKeyDown.add(function(ed,e) {
if(cPopup !== null) {
if(cPopup !== null)
cPopup.onkey(e);
}
});
ed.onKeyUp.add(function(ed, e) {
@ -64,7 +60,7 @@ function initEditor(cb) {
cPopup = new ACPopup(this,baseurl+"/acl");
}
if(cPopup.ready && match[1]!==cPopup.searchText) cPopup.search(match[1]);
if(! cPopup.ready) { cPopup = null; }
if(! cPopup.ready) cPopup = null;
}
else {
if(cPopup !== null) { cPopup.close(); cPopup = null; }
@ -102,9 +98,9 @@ function initEditor(cb) {
ed.pasteAsPlainText = true;
$("#profile-jot-text-loading").hide();
$(".jothidden").show();
if (typeof cb!="undefined") { cb(); }
if (typeof cb!="undefined") cb();
});
}
});
editor = true;
@ -118,51 +114,21 @@ 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(){
if (editor) return;
$(this).val("");
initEditor();
charCounter();
}
</script>
<script type="text/javascript" src="$baseurl/js/ajaxupload.js" ></script>
<script>
var ispublic = '$ispublic';
var addtitle = '$addtitle';
$(document).ready(function() {
/* enable tinymce on focus and click */
$("#profile-jot-text").focus(enableOnUser);
$("#profile-jot-text").click(enableOnUser);
$("#profile-jot-text").focus(charCounter);
$("#profile-jot-text").click(charCounter);
var uploader = new window.AjaxUpload(
'wall-image-upload',
@ -313,5 +279,36 @@ function enableOnUser(){
$geotag
function charCounter() {
// character count part deux
//$(this).val().length is not a function Line 282(3)
$('#profile-jot-text').keyup(function() {
var textlen = 0;
var maxLen1 = 140;
var maxLen2 = 420;
$('#character-counter').removeClass('jothidden');
textLen = $(this).val().length;
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').text( textLen );
});
$('#profile-jot-text').keyup();
}
</script>

View file

@ -232,7 +232,8 @@ nav a:hover {
nav #banner {
display: block;
position: absolute;
margin-left: 20px;
left: 51px;
top: 25px;
}
nav #banner #logo-text a {
font-size: 40px;
@ -414,8 +415,8 @@ div.jGrowl div.info {
padding-left: 58px;
}
#nav-notifications-menu {
margin-top: 30px;
width: 255px;
margin: 30px 0 0 -45px;
width: 300px;
max-height: 400px;
overflow: auto;
font-size: 9pt;
@ -611,8 +612,8 @@ nav #nav-notifications-linkmenu.on .icon.s22.notify, nav #nav-notifications-link
**/
aside {
position: absolute;
right: 8%;
width: 20.5%;
right: 15px;
width: 255px;
font-size: smaller;
}
.vcard .fn {
@ -672,7 +673,7 @@ aside #viewcontacts {
**/
#jot {
/*width: 785px;*/
margin: 0px 0 20px 0px;
margin: 10px 0 20px 0px;
width: 100%;
}
#jot #jot-tools {
@ -956,7 +957,7 @@ aside #viewcontacts {
* section
*/
section {
margin: 20px 8% 0 6%;
margin: 20px 6% 0 4%;
font-size: 0.8em;
padding-right: 250px;
min-width: 475px;
@ -965,7 +966,7 @@ section {
/** tabs **/
.tabs {
list-style: none;
margin: 0;
margin: 10px 0 10px;
padding: 0;
border-bottom: 1px solid #729fcf;
font-size: 14px;
@ -1021,6 +1022,7 @@ section {
/*border: 1px #aaa solid;*/
/*border-radius: 5px;*/
padding: 0px;
overflow-x: auto;
}
.wall-item-photo-menu {
display: none;
@ -1918,7 +1920,13 @@ div[id$="wrapper"] br {
#item-delete-selected {
margin-top: 30px;
}
/* was tired of having no way of moving it around, so
* here's a little 'hook' to do so */
.delete-checked {
position: absolute;
left: 35px;
margin-top: 20px;
}
#item-delete-selected-end {
clear: both;
}
@ -2100,13 +2108,15 @@ div[id$="wrapper"] br {
}
.field label {
float: left;
width: 200px;
width: 275px;
display: block;
font-size: 1.077em;
/*font-weight: bold;*/
margin-bottom: 0.2em;
margin: 0 10px 0.2em 0;
border: 1px #999 solid;
padding: 5px;
background: #f2eedf;
vertical-align: middle;
}
.field input {