fix /display bug; oembed audio bug; other tweaks

This commit is contained in:
Zach Prezkuta 2012-07-31 18:53:18 -06:00
parent b522ffeea5
commit 885bb50f0d
15 changed files with 45 additions and 3681 deletions

View file

@ -16,15 +16,7 @@ function display_content(&$a) {
$o = '<div id="live-display"></div>' . "\r\n";
$a->page['htmlhead'] .= <<<EOT
<script>
$(document).ready(function() {
$(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
// make auto-complete work in more places
$(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
});
</script>
EOT;
$a->page['htmlhead'] .= get_markup_template('display-head.tpl');
$nick = (($a->argc > 1) ? $a->argv[1] : '');

8
view/display-head.tpl Normal file
View file

@ -0,0 +1,8 @@
<script>
$(document).ready(function() {
$(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
// make auto-complete work in more places
$(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
});
</script>

View file

@ -0,0 +1,4 @@
<script>
window.autoCompleteType = 'display-head';
</script>

View file

@ -93,6 +93,13 @@ $j(document).ready(function() {
$j('#drop-' + id).removeClass('icon');$j('#drop-' + id).removeClass('drophide'); $j('#drop-' + id).addClass('iconspacer');}
);*/
if(window.autoCompleteType == "display-head") {
//$j(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
// make auto-complete work in more places
//$j(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
$j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
}
if(window.aclType == "event_head") {
$j('#events-calendar').fullCalendar({
events: baseurl + '/events/json/',

File diff suppressed because one or more lines are too long

View file

@ -3462,7 +3462,7 @@ aside input[type='text'] {
background-image: url('../../../images/icons.png');
}
.article { background-position: 0px 0px;}
.audio { display: none; background-position: -16px 0px;}
.icon.audio { display: none; background-position: -16px 0px;}
.block { background-position: -32px 0px;}
/*.drop { background-position: -48px 0px;}
.drophide { background-position: -64px 0px;}*/
@ -3635,9 +3635,9 @@ aside input[type='text'] {
margin: 20px 10px 0 0;
visibility: none;
}
[class^="comment-edit-bb-end"] {
/*[class^="comment-edit-bb-end"] {
clear: both;
}
}*/
.editicon {
display: inline-block;
background-size: 100% 100%;

View file

@ -51,7 +51,7 @@
</div>
{{ endif }}
{{ if $item.plink }}
<!--<div class="wall-item-links-wrapper">--><a href="$item.plink.href" title="$item.plink.title" target="external-link" class="wall-item-links-wrapper icon remote-link$item.sparkle"></a><!--</div>-->
<!--<div class="wall-item-links-wrapper"><a href="$item.plink.href" title="$item.plink.title" target="external-link" class="wall-item-links-wrapper icon remote-link$item.sparkle"></a></div>-->
{{ endif }}
{{ if $item.edpost }}
<a class="editpost icon pencil" href="$item.edpost.0" title="$item.edpost.1"></a>

View file

@ -0,0 +1,4 @@
<script>
window.autoCompleteType = 'display-head';
</script>

View file

@ -78,6 +78,13 @@ $j(document).ready(function() {
return false;
});*/
if(window.autoCompleteType == "display-head") {
//$j(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
// make auto-complete work in more places
//$j(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl");
$j(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
}
if(window.aclType == "event_head") {
$j('#events-calendar').fullCalendar({
events: baseurl + '/events/json/',

File diff suppressed because one or more lines are too long

View file

@ -3525,9 +3525,9 @@ aside input[type='text'] {
margin: 10px 10px 0 0;
visibility: none;
}
[class^="comment-edit-bb-end"] {
/*[class^="comment-edit-bb-end"] {
clear: both;
}
}*/
.editicon {
display: inline-block;
/* background-image: url(bbedit.png);

File diff suppressed because it is too large Load diff