Skip to content

Commit

Permalink
updated to 1.7.35 version
Browse files Browse the repository at this point in the history
fixed some bugs related jquery 1.7.35 and some other small issues.
  • Loading branch information
vvvmax committed Oct 29, 2016
1 parent 4f838dd commit ea4d21a
Show file tree
Hide file tree
Showing 9 changed files with 115 additions and 23 deletions.
36 changes: 30 additions & 6 deletions dist/js/unitegallery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Unite Gallery, Version: 1.7.33, released 12 Oct 2016
// Unite Gallery, Version: 1.7.35, released 29 Oct 2016



Expand Down Expand Up @@ -2316,7 +2316,8 @@ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeO
/**
* ismouseover function - check if the mouse over some object
*/
!function(t){function e(){var i=this===document?t(this):t(this).contents();i.mousemove(function(e){t.mlp={x:e.pageX,y:e.pageY}}),i.find("iframe").load(e)}t.mlp={x:0,y:0},t(e),t.fn.ismouseover=function(){var e=!1;return this.eq(0).each(function(){var i=t(this).is("iframe")?t(this).contents().find("body"):t(this),n=i.offset();e=n.left<=t.mlp.x&&n.left+i.outerWidth()>t.mlp.x&&n.top<=t.mlp.y&&n.top+i.outerHeight()>t.mlp.y}),e}}(jQuery);
!function(t){function e(){var i=this===document?t(this):t(this).contents();i.mousemove(function(e){t.mlp={x:e.pageX,y:e.pageY}}),i.find("iframe").on("load",e)}t.mlp={x:0,y:0},t(e),t.fn.ismouseover=function(){var e=!1;return this.eq(0).each(function(){var i=t(this).is("iframe")?t(this).contents().find("body"):t(this),n=i.offset();e=n.left<=t.mlp.x&&n.left+i.outerWidth()>t.mlp.x&&n.top<=t.mlp.y&&n.top+i.outerHeight()>t.mlp.y}),e}}(jQuery);



function UGThumbsGeneral(){
Expand Down Expand Up @@ -21327,6 +21328,24 @@ function UniteGalleryMain(){
}


/**
* get if small screen
*/
this.isSmallWindow = function(){

var windowWidth = jQuery(window).width();


if(!windowWidth)
return(true);

if(windowWidth <= 480)
return(true);

return(false);
}


/**
* change gallery items
*/
Expand Down Expand Up @@ -21643,7 +21662,7 @@ function UGLightbox(){

g_options = jQuery.extend(g_options, g_defaults);
g_options = jQuery.extend(g_options, customOptions);

g_temp.originalOptions = jQuery.extend({}, g_options);

if(g_options.lightbox_type == "compact"){
Expand Down Expand Up @@ -22110,7 +22129,6 @@ function UGLightbox(){
if(g_temp.isArrowsOnHoverMode == true && isImageInPlace == true && isMouseInsideImage() == false)
hideArrows(true);


if(isImageInPlace == false){
var leftArrowLeft = g_functions.getElementRelativePos(g_objArrowLeft, "left", g_options.lightbox_arrows_offset);
var leftArrowTop = g_functions.getElementRelativePos(g_objArrowLeft, "middle");
Expand Down Expand Up @@ -23083,8 +23101,13 @@ function UGLightbox(){
g_temp.isCompact = false;
modifyOptions();

g_temp.isArrowsInside = false;
g_temp.isArrowsOnHoverMode = false;

g_options = jQuery.extend({}, g_temp.originalOptions);

g_options.lightbox_arrows_position = "sides";

g_objSlider.setOptions(g_options);
}

Expand All @@ -23095,8 +23118,9 @@ function UGLightbox(){
this.putHtml = function(){

//check if switch to wide mode
var isMobile = g_gallery.isMobileMode();
if(isMobile && g_temp.isCompact == true)
var isSmallWindow = g_gallery.isSmallWindow();

if(isSmallWindow && g_temp.isCompact == true)
switchToWide();

putLightboxHtml();
Expand Down
6 changes: 3 additions & 3 deletions dist/js/unitegallery.min.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions dist/release_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
version 1.7.35

-bug fix: fixed some errors related to jquery 3.0

version 1.7.34

-bug fix: the lightbox was switched to wide even on normal screens

version 1.7.33

-bug fix: fixed no thumb image bug

version 1.7.32

-bug fix: fixed left arrow inside arrows not in place bug
Expand Down
36 changes: 30 additions & 6 deletions package/unitegallery/js/unitegallery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Unite Gallery, Version: 1.7.33, released 12 Oct 2016
// Unite Gallery, Version: 1.7.35, released 29 Oct 2016



Expand Down Expand Up @@ -2316,7 +2316,8 @@ jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeO
/**
* ismouseover function - check if the mouse over some object
*/
!function(t){function e(){var i=this===document?t(this):t(this).contents();i.mousemove(function(e){t.mlp={x:e.pageX,y:e.pageY}}),i.find("iframe").load(e)}t.mlp={x:0,y:0},t(e),t.fn.ismouseover=function(){var e=!1;return this.eq(0).each(function(){var i=t(this).is("iframe")?t(this).contents().find("body"):t(this),n=i.offset();e=n.left<=t.mlp.x&&n.left+i.outerWidth()>t.mlp.x&&n.top<=t.mlp.y&&n.top+i.outerHeight()>t.mlp.y}),e}}(jQuery);
!function(t){function e(){var i=this===document?t(this):t(this).contents();i.mousemove(function(e){t.mlp={x:e.pageX,y:e.pageY}}),i.find("iframe").on("load",e)}t.mlp={x:0,y:0},t(e),t.fn.ismouseover=function(){var e=!1;return this.eq(0).each(function(){var i=t(this).is("iframe")?t(this).contents().find("body"):t(this),n=i.offset();e=n.left<=t.mlp.x&&n.left+i.outerWidth()>t.mlp.x&&n.top<=t.mlp.y&&n.top+i.outerHeight()>t.mlp.y}),e}}(jQuery);



function UGThumbsGeneral(){
Expand Down Expand Up @@ -21327,6 +21328,24 @@ function UniteGalleryMain(){
}


/**
* get if small screen
*/
this.isSmallWindow = function(){

var windowWidth = jQuery(window).width();


if(!windowWidth)
return(true);

if(windowWidth <= 480)
return(true);

return(false);
}


/**
* change gallery items
*/
Expand Down Expand Up @@ -21643,7 +21662,7 @@ function UGLightbox(){

g_options = jQuery.extend(g_options, g_defaults);
g_options = jQuery.extend(g_options, customOptions);

g_temp.originalOptions = jQuery.extend({}, g_options);

if(g_options.lightbox_type == "compact"){
Expand Down Expand Up @@ -22110,7 +22129,6 @@ function UGLightbox(){
if(g_temp.isArrowsOnHoverMode == true && isImageInPlace == true && isMouseInsideImage() == false)
hideArrows(true);


if(isImageInPlace == false){
var leftArrowLeft = g_functions.getElementRelativePos(g_objArrowLeft, "left", g_options.lightbox_arrows_offset);
var leftArrowTop = g_functions.getElementRelativePos(g_objArrowLeft, "middle");
Expand Down Expand Up @@ -23083,8 +23101,13 @@ function UGLightbox(){
g_temp.isCompact = false;
modifyOptions();

g_temp.isArrowsInside = false;
g_temp.isArrowsOnHoverMode = false;

g_options = jQuery.extend({}, g_temp.originalOptions);

g_options.lightbox_arrows_position = "sides";

g_objSlider.setOptions(g_options);
}

Expand All @@ -23095,8 +23118,9 @@ function UGLightbox(){
this.putHtml = function(){

//check if switch to wide mode
var isMobile = g_gallery.isMobileMode();
if(isMobile && g_temp.isCompact == true)
var isSmallWindow = g_gallery.isSmallWindow();

if(isSmallWindow && g_temp.isCompact == true)
switchToWide();

putLightboxHtml();
Expand Down
6 changes: 3 additions & 3 deletions package/unitegallery/js/unitegallery.min.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions package/unitegallery/release_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
version 1.7.35

-bug fix: fixed some errors related to jquery 3.0

version 1.7.34

-bug fix: the lightbox was switched to wide even on normal screens

version 1.7.33

-bug fix: fixed no thumb image bug
Expand Down
3 changes: 2 additions & 1 deletion source/unitegallery/js/ug-common-libraries.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions source/unitegallery/js/ug-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,24 @@ function UniteGalleryMain(){
}


/**
* get if small screen
*/
this.isSmallWindow = function(){

var windowWidth = jQuery(window).width();


if(!windowWidth)
return(true);

if(windowWidth <= 480)
return(true);

return(false);
}


/**
* change gallery items
*/
Expand Down
13 changes: 9 additions & 4 deletions source/unitegallery/js/ug-lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function UGLightbox(){

g_options = jQuery.extend(g_options, g_defaults);
g_options = jQuery.extend(g_options, customOptions);

g_temp.originalOptions = jQuery.extend({}, g_options);

if(g_options.lightbox_type == "compact"){
Expand Down Expand Up @@ -599,7 +599,6 @@ function UGLightbox(){
if(g_temp.isArrowsOnHoverMode == true && isImageInPlace == true && isMouseInsideImage() == false)
hideArrows(true);


if(isImageInPlace == false){
var leftArrowLeft = g_functions.getElementRelativePos(g_objArrowLeft, "left", g_options.lightbox_arrows_offset);
var leftArrowTop = g_functions.getElementRelativePos(g_objArrowLeft, "middle");
Expand Down Expand Up @@ -1572,8 +1571,13 @@ function UGLightbox(){
g_temp.isCompact = false;
modifyOptions();

g_temp.isArrowsInside = false;
g_temp.isArrowsOnHoverMode = false;

g_options = jQuery.extend({}, g_temp.originalOptions);

g_options.lightbox_arrows_position = "sides";

g_objSlider.setOptions(g_options);
}

Expand All @@ -1584,8 +1588,9 @@ function UGLightbox(){
this.putHtml = function(){

//check if switch to wide mode
var isMobile = g_gallery.isMobileMode();
if(isMobile && g_temp.isCompact == true)
var isSmallWindow = g_gallery.isSmallWindow();

if(isSmallWindow && g_temp.isCompact == true)
switchToWide();

putLightboxHtml();
Expand Down

0 comments on commit ea4d21a

Please sign in to comment.