aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-17 18:45:56 -0700
committerfriendica <info@friendica.com>2015-03-17 18:45:56 -0700
commit7a9aca6ecbe84ad4469cbbec2b7a1269e9f94378 (patch)
treed7580c55a510bdb3c2bfed2308877ca871c0dd07 /view/tpl
parentf5602f129eb24ccd1690f49cc272bf2c352e5238 (diff)
downloadvolse-hubzilla-7a9aca6ecbe84ad4469cbbec2b7a1269e9f94378.tar.gz
volse-hubzilla-7a9aca6ecbe84ad4469cbbec2b7a1269e9f94378.tar.bz2
volse-hubzilla-7a9aca6ecbe84ad4469cbbec2b7a1269e9f94378.zip
fix the map embed issue by keeping the map visible but moving it far off the screen.
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/photo_view.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl
index 1deaa67fc..52ef161ba 100755
--- a/view/tpl/photo_view.tpl
+++ b/view/tpl/photo_view.tpl
@@ -9,13 +9,13 @@
{{/if}}
{{if $map}}
<div class="btn-group btn-group">
- <i class="icon-globe btn btn-default btn-xs" title="{{$map_text}}" onclick="openClose('photo-map');"></i>
+ <i class="icon-globe btn btn-default btn-xs" title="{{$map_text}}" onclick="var pos = $('#photo-map').css('position'); if(pos === 'absolute') { $('#photo-map').css( { position: 'relative', left: 'auto', top: 'auto' }); } else { $('#photo-map').css( { position: 'absolute', left: '-9999px', top: '-9999px' }); }" ></i>
</div>
{{/if}}
<div class="btn-group btn-group dropdown">
{{if $edit}}
- <i class="icon-pencil btn btn-default btn-xs" title="{{$edit.edit}}" onclick="openClose('photo-edit'); $('#map-frame').attr('src',function(i,val) { return val;});"></i>
+ <i class="icon-pencil btn btn-default btn-xs" title="{{$edit.edit}}" onclick="openClose('photo-edit');"></i>
{{/if}}
{{if $lock}}
<i id="lockview" class="icon-lock btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" title="{{$lock}}" onclick="lockview(event,{{$id}});" ></i><ul id="panel-{{$id}}" class="lockview-panel dropdown-menu"></ul>