Commit 7a31c0d0 authored by Peter Tönnies's avatar Peter Tönnies

removed the obsolete foodsaver bubble.

parent d77e6e40
Pipeline #86881766 passed with stages
in 9 minutes and 55 seconds
......@@ -114,6 +114,7 @@
- Set width 50px for user pics in region member list !1080 @chriswalg
- Put the footer on pages with less content at the bottom of the page !1087 #590 @chriswalg
- Bugfix for end date being required when creating single-day event !1084 @tihar
- Removed the obsolete and insecure foodsaver bubble for our map !1093 @peter.toennies
## Refactoring
- Refactored profile from WorkGroupModel to WorkGroupGateway !898 #9 @svenpascal
......
......@@ -33,19 +33,6 @@ class ViewUtils
$this->translationHelper = $translationHelper;
}
public function fsBubble($fs)
{
return '<div style="height:80px;overflow:hidden;width:200px;">
<div style="margin-right:10px;float:left;margin-bottom:33px">
<a href="/profile/' . (int)$fs['id'] . '">
<img src="' . $this->imageService->img($fs['photo']) . '">
</a>
</div>
<h1 style="font-size:13px;font-weight:bold;margin-bottom:8px;"><a href="/profile/' . (int)$fs['id'] . '">' . $fs['name'] . '</a></h1>
<div style="clear:both;"></div>
</div>';
}
public function bBubble($b)
{
$button = '';
......
......@@ -365,18 +365,6 @@ class XhrMethods
return json_encode(array('status' => 0));
}
public function xhr_fsBubble($data)
{
if ($b = $this->foodsaverGateway->getOne_foodsaver($data['id'])) {
return json_encode(array(
'status' => 1,
'html' => $this->xhrViewUtils->fsBubble($b)
));
}
return json_encode(array('status' => 0));
}
public function xhr_loadMarker($data)
{
$out = array();
......
......@@ -206,10 +206,7 @@ function loadMarker (types, loader) {
const fsid = (el.layer.options.id)
const type = el.layer.options.type
if (type === 'fs') {
url = `/xhr.php?f=fsBubble&id=${fsid}`
showLoader()
} else if (type === 'bk') {
if (type === 'bk') {
ajreq('bubble', { app: 'basket', id: fsid })
} else if (type === 'b') {
url = `/xhr.php?f=bBubble&id=${fsid}`
......
......@@ -22,7 +22,6 @@ $csrf_whitelist = [
// 'addPinPost',
// 'childBezirke',
'bBubble',
// 'fsBubble',
// 'loadMarker',
// 'uploadPictureRefactorMeSoon',
'uploadPicture',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment