fix lock permissions view and autoload not kicking in on touch devices under certain conditions
This commit is contained in:
parent
50a7e9ce8f
commit
89b573a6f3
@ -40,7 +40,7 @@ function lockview_content(&$a) {
|
|||||||
$deny_users = expand_acl($item['deny_cid']);
|
$deny_users = expand_acl($item['deny_cid']);
|
||||||
$deny_groups = expand_acl($item['deny_gid']);
|
$deny_groups = expand_acl($item['deny_gid']);
|
||||||
|
|
||||||
$o = t('Visible to:') . '<br />';
|
$o = '<li>' . t('Visible to:') . '</li>';
|
||||||
$l = array();
|
$l = array();
|
||||||
|
|
||||||
stringify_array_elms($allowed_groups,true);
|
stringify_array_elms($allowed_groups,true);
|
||||||
@ -52,28 +52,28 @@ function lockview_content(&$a) {
|
|||||||
$r = q("SELECT name FROM `groups` WHERE hash IN ( " . implode(', ', $allowed_groups) . " )");
|
$r = q("SELECT name FROM `groups` WHERE hash IN ( " . implode(', ', $allowed_groups) . " )");
|
||||||
if($r)
|
if($r)
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
$l[] = '<b>' . $rr['name'] . '</b>';
|
$l[] = '<li><b>' . $rr['name'] . '</b></li>';
|
||||||
}
|
}
|
||||||
if(count($allowed_users)) {
|
if(count($allowed_users)) {
|
||||||
$r = q("SELECT xchan_name FROM xchan WHERE xchan_hash IN ( " . implode(', ',$allowed_users) . " )");
|
$r = q("SELECT xchan_name FROM xchan WHERE xchan_hash IN ( " . implode(', ',$allowed_users) . " )");
|
||||||
if($r)
|
if($r)
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
$l[] = $rr['xchan_name'];
|
$l[] = '<li>' . $rr['xchan_name'] . '</li>';
|
||||||
}
|
}
|
||||||
if(count($deny_groups)) {
|
if(count($deny_groups)) {
|
||||||
$r = q("SELECT name FROM `groups` WHERE hash IN ( " . implode(', ', $deny_groups) . " )");
|
$r = q("SELECT name FROM `groups` WHERE hash IN ( " . implode(', ', $deny_groups) . " )");
|
||||||
if($r)
|
if($r)
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
$l[] = '<b><strike>' . $rr['name'] . '</strike></b>';
|
$l[] = '<li><b><strike>' . $rr['name'] . '</strike></b></li>';
|
||||||
}
|
}
|
||||||
if(count($deny_users)) {
|
if(count($deny_users)) {
|
||||||
$r = q("SELECT xchan_name FROM xchan WHERE xchan_hash IN ( " . implode(', ', $deny_users) . " )");
|
$r = q("SELECT xchan_name FROM xchan WHERE xchan_hash IN ( " . implode(', ', $deny_users) . " )");
|
||||||
if($r)
|
if($r)
|
||||||
foreach($r as $rr)
|
foreach($r as $rr)
|
||||||
$l[] = '<strike>' . $rr['xchan_name'] . '</strike>';
|
$l[] = '<li><strike>' . $rr['xchan_name'] . '</strike></li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $o . implode(', ', $l);
|
echo $o . implode($l);
|
||||||
killme();
|
killme();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -204,25 +204,14 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
.wall-item-lock {
|
|
||||||
position: absolute;
|
|
||||||
left: 105px;
|
|
||||||
top: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.comment .wall-item-lock {
|
|
||||||
left: 65px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wall-item-lock {
|
|
||||||
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
.lockview {
|
.lockview {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lockview-panel {
|
||||||
|
padding: 3px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.wall-item-location {
|
.wall-item-location {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
max-width: 30%;
|
max-width: 30%;
|
||||||
|
@ -728,28 +728,11 @@ function updateConvItems(mode,data) {
|
|||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
var lockvisible = false;
|
|
||||||
|
|
||||||
function lockview(event,id) {
|
function lockview(event,id) {
|
||||||
event = event || window.event;
|
|
||||||
cursor = getPosition(event);
|
|
||||||
if(lockvisible) {
|
|
||||||
lockviewhide();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
lockvisible = true;
|
|
||||||
$.get('lockview/' + id, function(data) {
|
$.get('lockview/' + id, function(data) {
|
||||||
$('#panel').html(data);
|
$('#panel-' + id).html(data);
|
||||||
$('#panel').css({ 'left': cursor.x + 5 , 'top': cursor.y + 5});
|
|
||||||
$('#panel').show();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
function lockviewhide() {
|
|
||||||
lockvisible = false;
|
|
||||||
$('#panel').hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
function post_comment(id) {
|
function post_comment(id) {
|
||||||
unpause();
|
unpause();
|
||||||
@ -1022,7 +1005,7 @@ $(window).scroll(function () {
|
|||||||
$('#more').show();
|
$('#more').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
if($(window).scrollTop() + $(window).height() == $(document).height()) {
|
if($(window).scrollTop() + $(window).height() > $(document).height() - 100) {
|
||||||
if((pageHasMoreContent) && (! loadingPage)) {
|
if((pageHasMoreContent) && (! loadingPage)) {
|
||||||
$('#more').hide();
|
$('#more').hide();
|
||||||
$('#no-more').hide();
|
$('#no-more').hide();
|
||||||
@ -1032,7 +1015,6 @@ $(window).scroll(function () {
|
|||||||
loadingPage = true;
|
loadingPage = true;
|
||||||
liveUpdate();
|
liveUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -113,15 +113,6 @@ blockquote {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#panel {
|
|
||||||
background-color: ivory;
|
|
||||||
position: absolute;
|
|
||||||
z-index: 2;
|
|
||||||
width: 30%;
|
|
||||||
padding: 25px;
|
|
||||||
border: 1px solid #444;
|
|
||||||
}
|
|
||||||
|
|
||||||
.heart {
|
.heart {
|
||||||
color: #FF0000;
|
color: #FF0000;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
|
@ -30,6 +30,9 @@ if ($('aside').html().length == 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('#expand-tabs').click(function() {
|
$('#expand-tabs').click(function() {
|
||||||
|
if(!$('#tabs-collapse-1').hasClass('in')){
|
||||||
|
$('html, body').animate({ scrollTop: 0 }, 'slow');
|
||||||
|
}
|
||||||
$('#expand-tabs-icon').toggleClass('icon-circle-arrow-down').toggleClass('icon-circle-arrow-up');
|
$('#expand-tabs-icon').toggleClass('icon-circle-arrow-down').toggleClass('icon-circle-arrow-up');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -34,8 +34,8 @@
|
|||||||
<div class="wall-item-photo-end"></div>
|
<div class="wall-item-photo-end"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="wall-item-author">
|
<div class="wall-item-author dropdown">
|
||||||
{{if $item.lock}}<i class="wall-item-lock icon-lock lockview" title="{{$item.lock}}" onclick="lockview(event,{{$item.id}});" ></i> {{/if}}<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.via}} <a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a>{{/if}}<br />
|
{{if $item.lock}}<i class="icon-lock lockview dropdown-toggle" data-toggle="dropdown" title="{{$item.lock}}" onclick="lockview(event,{{$item.id}});" ></i><ul id="panel-{{$item.id}}" class="lockview-panel dropdown-menu"></ul> {{/if}}<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.sparkle}}" id="wall-item-name-{{$item.id}}" >{{$item.name}}</span></a>{{if $item.owner_url}} {{$item.via}} <a href="{{$item.owner_url}}" title="{{$item.olinktitle}}" class="wall-item-name-link"><span class="wall-item-name{{$item.osparkle}}" id="wall-item-ownername-{{$item.id}}">{{$item.owner_name}}</span></a>{{/if}}<br />
|
||||||
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}">{{if $item.verified}}<i class="icon-ok" title="{{$item.verified}}"></i> {{/if}}{{if $item.location}}<span class="wall-item-location" id="wall-item-location-{{$item.id}}">{{$item.location}}, </span>{{/if}}<span class="autotime" title="{{$item.isotime}}">{{$item.localtime}}{{if $item.editedtime}} {{$item.editedtime}}{{/if}}{{if $item.expiretime}} {{$item.expiretime}}{{/if}}</span>{{if $item.app}}<span class="item.app">{{$item.str_app}}</span>{{/if}}</div>
|
<div class="wall-item-ago" id="wall-item-ago-{{$item.id}}">{{if $item.verified}}<i class="icon-ok" title="{{$item.verified}}"></i> {{/if}}{{if $item.location}}<span class="wall-item-location" id="wall-item-location-{{$item.id}}">{{$item.location}}, </span>{{/if}}<span class="autotime" title="{{$item.isotime}}">{{$item.localtime}}{{if $item.editedtime}} {{$item.editedtime}}{{/if}}{{if $item.expiretime}} {{$item.expiretime}}{{/if}}</span>{{if $item.app}}<span class="item.app">{{$item.str_app}}</span>{{/if}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="wall-item-content" id="wall-item-content-{{$item.id}}" >
|
<div class="wall-item-content" id="wall-item-content-{{$item.id}}" >
|
||||||
|
@ -3,5 +3,3 @@
|
|||||||
<ul id="nav-notifications-template" style="display:none;" rel="template">
|
<ul id="nav-notifications-template" style="display:none;" rel="template">
|
||||||
<li class="{5}"><a href="{0}" title="{2} {3}"><img src="{1}"><span class='contactname'>{2}</span>{3}<br><span class="notif-when">{4}</span></a></li>
|
<li class="{5}"><a href="{0}" title="{2} {3}"><img src="{1}"><span class='contactname'>{2}</span>{3}<br><span class="notif-when">{4}</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div id="panel" style="display: none;"></div>
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<base href="{{$baseurl}}/" />
|
<base href="{{$baseurl}}/" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=0">
|
||||||
<meta name="generator" content="{{$generator}}" />
|
<meta name="generator" content="{{$generator}}" />
|
||||||
|
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
|
Reference in New Issue
Block a user