diff options
-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> |