Редактирование со страницы точки

This commit is contained in:
Krivchikov Dmitry 2015-05-29 22:43:16 +03:00
parent bf79cd275f
commit f29cb9d94e
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,10 @@
</nobr>
&nbsp;&nbsp;/&nbsp;&nbsp;
<a href="/?point=<?= $point->id ?>">На карте</a>
<?php if($user && $user->isAdmin):?>
&nbsp;&nbsp;/&nbsp;&nbsp;
<a href="/?point=<?= $point->id ?>&edit=true">Редактировать</a>
<?php endif;?>
</div>
<div style="text-align: justify;">

View File

@ -251,6 +251,10 @@ function showInfo(id)
if (isAdmin == '1')
{
description += '<button type="button" class="btn btn-default" onclick="editPoint(' + id + ')"><span class="glyphicon glyphicon-pencil"></span> <span class="label">Редактировать</span></button>';
if (getURLParameter('edit') == 'true')
{
editPoint(id);
}
}
description += '</div>';