From 81d1c32be2b39abb03c02dfad6fe08ef4c5fd1e9 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 28 Jan 2015 10:59:05 +0000 Subject: [PATCH] Activate fullscreen mode for expose view --- etemplate/js/expose.js | 8 +++++--- etemplate/templates/default/etemplate2.css | 5 +++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/etemplate/js/expose.js b/etemplate/js/expose.js index d8efd75cd3..5f01571ce4 100644 --- a/etemplate/js/expose.js +++ b/etemplate/js/expose.js @@ -12,7 +12,7 @@ /*egw:uses jquery.jquery; - /phpgwapi/js/jquery/blueimp/js/jquery.blueimp-gallery.min.js; + /phpgwapi/js/jquery/blueimp/js/blueimp-gallery.min.js; */ /** @@ -48,7 +48,7 @@ function expose (widget) }; // For filtering to only show things we can handle - var mime_regex = new RegExp(/video\/|image|audio\//); + var mime_regex = new RegExp(/video\/|image\/|audio\//); // Only one gallery var gallery = null; @@ -234,6 +234,8 @@ function expose (widget) closeClass: 'close', // The class for the "play-pause" toggle control: playPauseClass: 'play-pause', + // The class to add for fullscreen button option + fullscreenClass:'fullscreen', // The list object property (or data attribute) with the object type: typeProperty: 'type', // The list object property (or data attribute) with the object title: @@ -347,7 +349,7 @@ function expose (widget) // Gallery Main DIV container var $expose_node = jQuery(document.createElement('div')).attr({id:"blueimp-gallery", class:"blueimp-gallery"}); // Create Gallery DOM NODE - $expose_node.append('

×
    '); + $expose_node.append('

    ×
      '); // Append the gallery Node to DOM $body.append($expose_node); } diff --git a/etemplate/templates/default/etemplate2.css b/etemplate/templates/default/etemplate2.css index 48611bb183..1e91229646 100644 --- a/etemplate/templates/default/etemplate2.css +++ b/etemplate/templates/default/etemplate2.css @@ -1810,6 +1810,11 @@ span.et2_egw_action_ddHelper_itemsCnt { right: 42px; top: 23px; } +/*fullScreen button*/ +.blueimp-gallery>.fullscreen{ + right: 75px; + top: 25px; +} /*Give room to Carousel indicator when the gallery controls is on*/ .blueimp-gallery-controls>.slides { height:85%;