diff options
author | friendica <info@friendica.com> | 2015-03-17 18:45:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-17 18:45:56 -0700 |
commit | 7a9aca6ecbe84ad4469cbbec2b7a1269e9f94378 (patch) | |
tree | d7580c55a510bdb3c2bfed2308877ca871c0dd07 /view | |
parent | f5602f129eb24ccd1690f49cc272bf2c352e5238 (diff) | |
download | volse-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')
-rw-r--r-- | view/css/mod_photos.css | 7 | ||||
-rwxr-xr-x | view/tpl/photo_view.tpl | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/view/css/mod_photos.css b/view/css/mod_photos.css index f95a0ca2f..7718289c3 100644 --- a/view/css/mod_photos.css +++ b/view/css/mod_photos.css @@ -19,7 +19,6 @@ } #photo-edit, -#photo-map, #photo-album-edit-wrapper, #photo-upload-form { display: none; @@ -29,3 +28,9 @@ padding: 4px; width: 100%; } + +#photo-map { + position: absolute; + left: -9999px; + top: -9999px; +}
\ No newline at end of file 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> |