Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
9f4e9f247a
@ -50,6 +50,7 @@ function editpost_content(&$a) {
|
|||||||
'$geotag' => $geotag,
|
'$geotag' => $geotag,
|
||||||
'$nickname' => $channel['channel_address'],
|
'$nickname' => $channel['channel_address'],
|
||||||
'$expireswhen' => t('Expires YYYY-MM-DD HH:MM'),
|
'$expireswhen' => t('Expires YYYY-MM-DD HH:MM'),
|
||||||
|
'$confirmdelete' => t('Delete item?'),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,7 +112,8 @@ function editwebpage_content(&$a) {
|
|||||||
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
|
'$editselect' => (($plaintext) ? 'none' : '/(profile-jot-text|prvmail-text)/'),
|
||||||
'$ispublic' => ' ', // t('Visible to <strong>everybody</strong>'),
|
'$ispublic' => ' ', // t('Visible to <strong>everybody</strong>'),
|
||||||
'$geotag' => $geotag,
|
'$geotag' => $geotag,
|
||||||
'$nickname' => $a->user['nickname']
|
'$nickname' => $a->user['nickname'],
|
||||||
|
'$confirmdelete' => t('Delete webpage?')
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
@ -185,7 +186,7 @@ function editwebpage_content(&$a) {
|
|||||||
$ob = get_observer_hash();
|
$ob = get_observer_hash();
|
||||||
|
|
||||||
if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob))
|
if(($itm[0]['author_xchan'] === $ob) || ($itm[0]['owner_xchan'] === $ob))
|
||||||
$o .= '<br /><br /><a href="item/drop/' . $itm[0]['id'] . '" >' . t('Delete Webpage') . '</a><br />';
|
$o .= '<br /><br /><a class="page-delete-link" href="item/drop/' . $itm[0]['id'] . '" >' . t('Delete Webpage') . '</a><br />';
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
@ -1146,8 +1146,9 @@ function item_check_service_class($channel_id,$iswebpage) {
|
|||||||
if ($iswebpage) {
|
if ($iswebpage) {
|
||||||
$r = q("select count(i.id) as total from item i
|
$r = q("select count(i.id) as total from item i
|
||||||
right join channel c on (i.author_xchan=c.channel_hash and i.uid=c.channel_id )
|
right join channel c on (i.author_xchan=c.channel_hash and i.uid=c.channel_id )
|
||||||
and i.parent=i.id and (i.item_restrict & %d) and i.uid= %d ",
|
and i.parent=i.id and (i.item_restrict & %d) and not (i.item_restrict & %d) and i.uid= %d ",
|
||||||
intval(ITEM_WEBPAGE),
|
intval(ITEM_WEBPAGE),
|
||||||
|
intval(ITEM_DELETED),
|
||||||
intval($channel_id)
|
intval($channel_id)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -306,16 +306,15 @@ function enableOnUser(){
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!--
|
|
||||||
<script>
|
<script>
|
||||||
$( document ).on( "click", ".wall-item-delete-link", function(e) {
|
$( document ).on( "click", ".wall-item-delete-link,.page-delete-link", function(e) {
|
||||||
var link = $(this).attr("href"); // "get" the intended link in a var
|
var link = $(this).attr("href"); // "get" the intended link in a var
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
bootbox.confirm("<h4>Delete item?</h4>", function(result) {
|
bootbox.confirm("<h4>{{$confirmdelete}}</h4>", function(result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
document.location.href = link;}
|
document.location.href = link;}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
-->
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user