Skip to content

Commit

Permalink
update to 1.7.37 version
Browse files Browse the repository at this point in the history
fixed some bugs, made some protection
  • Loading branch information
vvvmax committed Nov 6, 2016
1 parent ea4d21a commit 1e6f328
Show file tree
Hide file tree
Showing 14 changed files with 166 additions and 61 deletions.
2 changes: 2 additions & 0 deletions dist/css/unite-gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
.ug-videoplayer-wrapper video{
height:100%;
width:100%;
visibility: visible !important;
}


.---------General_Styles--------{}

.ug-rtl{
Expand Down
54 changes: 36 additions & 18 deletions dist/js/unitegallery.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Unite Gallery, Version: 1.7.35, released 29 Oct 2016
// Unite Gallery, Version: 1.7.37, released 06 Nov 2016



Expand Down Expand Up @@ -19724,7 +19724,7 @@ function UniteGalleryMain(){
function fillItemsArray(arrChildren){

g_arrItems = [];

var isMobile = t.isMobileMode();

var numIndex = 0;
Expand Down Expand Up @@ -19758,23 +19758,33 @@ function UniteGalleryMain(){
jQuery.removeData(objChild, "lazyload-src");
}

//get the big image
var imageSrc = objChild.data("image");
if(!imageSrc || typeof imageSrc == "undefined")
imageSrc = objChild.attr("src");
//src is thumb
var urlImage = objChild.data("image");
var urlThumb = objChild.data("thumb");

var dataThumb = objChild.data("thumb");
if(typeof(urlImage) == "undefined")
urlImage = null;

//if exists data-thumb, then the big image is src
if(typeof dataThumb != "undefined" && dataThumb != ""){
objItem.urlThumb = dataThumb;
objItem.urlImage = imageSrc;
//objChild.attr("src", dataThumb);
}else{
//if not, the thumb is src
objItem.urlThumb = imageSrc;
objItem.urlImage = objChild.data("image");
}
if(typeof(urlThumb) == "undefined")
urlThumb = null;

var imageSrc = objChild.attr("src");

if(!urlImage)
urlImage = imageSrc;

if(!urlThumb)
urlThumb = imageSrc;

if(!urlThumb)
urlThumb = urlImage;

if(!urlImage)
urlImage = urlThumb;


objItem.urlThumb = urlThumb;
objItem.urlImage = urlImage;

objItem.title = objChild.attr("alt");

Expand All @@ -19785,8 +19795,12 @@ function UniteGalleryMain(){

}else{

if(itemType == "image")
if(itemType == "image"){
trace("Problematic gallery item found:");
trace(objChild);
trace("Please look for some third party js script that could add this item to the gallery");
throw new Error("The item should not be image type");
}

objItem.urlThumb = objChild.data("thumb");
objItem.title = objChild.data("title");
Expand Down Expand Up @@ -20313,6 +20327,7 @@ function UniteGalleryMain(){

storeLastSize();
g_objGallery.trigger(t.events.SIZE_CHANGE);

}

}
Expand Down Expand Up @@ -20415,6 +20430,9 @@ function UniteGalleryMain(){
g_functions.whenContiniousEventOver("gallery_resize", onGalleryResized, g_temp.resizeDelay);
});

//check resize once in a time
setInterval(onGalleryResized, 2000);

//fullscreen:
g_functions.addFullScreenChangeEvent(onFullScreenChange);

Expand Down
8 changes: 4 additions & 4 deletions dist/js/unitegallery.min.js

Large diffs are not rendered by default.

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

-bug fix: fixed the thumb image as big image bug

version 1.7.36

-protection: made some protection against video visibility:hidden
-protection: added some protection against js scripts that add additional items inside the gallery
-change: add a check if the gallery resized once in 2 seconds

version 1.7.35

-bug fix: fixed some errors related to jquery 3.0
Expand Down
1 change: 1 addition & 0 deletions dist/themes/default/ug-theme-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ function UGTheme_default(){
g_objSlider.setPosition(sliderLeft, sliderTop);
}


/**
* check if need to hide the panel according the options.
*/
Expand Down
2 changes: 2 additions & 0 deletions package/unitegallery/css/unite-gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
.ug-videoplayer-wrapper video{
height:100%;
width:100%;
visibility: visible !important;
}


.---------General_Styles--------{}

.ug-rtl{
Expand Down
54 changes: 36 additions & 18 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.35, released 29 Oct 2016
// Unite Gallery, Version: 1.7.37, released 06 Nov 2016



Expand Down Expand Up @@ -19724,7 +19724,7 @@ function UniteGalleryMain(){
function fillItemsArray(arrChildren){

g_arrItems = [];

var isMobile = t.isMobileMode();

var numIndex = 0;
Expand Down Expand Up @@ -19758,23 +19758,33 @@ function UniteGalleryMain(){
jQuery.removeData(objChild, "lazyload-src");
}

//get the big image
var imageSrc = objChild.data("image");
if(!imageSrc || typeof imageSrc == "undefined")
imageSrc = objChild.attr("src");
//src is thumb
var urlImage = objChild.data("image");
var urlThumb = objChild.data("thumb");

var dataThumb = objChild.data("thumb");
if(typeof(urlImage) == "undefined")
urlImage = null;

//if exists data-thumb, then the big image is src
if(typeof dataThumb != "undefined" && dataThumb != ""){
objItem.urlThumb = dataThumb;
objItem.urlImage = imageSrc;
//objChild.attr("src", dataThumb);
}else{
//if not, the thumb is src
objItem.urlThumb = imageSrc;
objItem.urlImage = objChild.data("image");
}
if(typeof(urlThumb) == "undefined")
urlThumb = null;

var imageSrc = objChild.attr("src");

if(!urlImage)
urlImage = imageSrc;

if(!urlThumb)
urlThumb = imageSrc;

if(!urlThumb)
urlThumb = urlImage;

if(!urlImage)
urlImage = urlThumb;


objItem.urlThumb = urlThumb;
objItem.urlImage = urlImage;

objItem.title = objChild.attr("alt");

Expand All @@ -19785,8 +19795,12 @@ function UniteGalleryMain(){

}else{

if(itemType == "image")
if(itemType == "image"){
trace("Problematic gallery item found:");
trace(objChild);
trace("Please look for some third party js script that could add this item to the gallery");
throw new Error("The item should not be image type");
}

objItem.urlThumb = objChild.data("thumb");
objItem.title = objChild.data("title");
Expand Down Expand Up @@ -20313,6 +20327,7 @@ function UniteGalleryMain(){

storeLastSize();
g_objGallery.trigger(t.events.SIZE_CHANGE);

}

}
Expand Down Expand Up @@ -20415,6 +20430,9 @@ function UniteGalleryMain(){
g_functions.whenContiniousEventOver("gallery_resize", onGalleryResized, g_temp.resizeDelay);
});

//check resize once in a time
setInterval(onGalleryResized, 2000);

//fullscreen:
g_functions.addFullScreenChangeEvent(onFullScreenChange);

Expand Down
8 changes: 4 additions & 4 deletions package/unitegallery/js/unitegallery.min.js

Large diffs are not rendered by default.

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

-bug fix: fixed the thumb image as big image bug

version 1.7.36

-protection: made some protection against video visibility:hidden
-protection: added some protection against js scripts that add additional items inside the gallery
-change: add a check if the gallery resized once in 2 seconds

version 1.7.35

-bug fix: fixed some errors related to jquery 3.0
Expand Down
1 change: 1 addition & 0 deletions package/unitegallery/themes/default/ug-theme-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ function UGTheme_default(){
g_objSlider.setPosition(sliderLeft, sliderTop);
}


/**
* check if need to hide the panel according the options.
*/
Expand Down
2 changes: 2 additions & 0 deletions source/unitegallery/css/unite-gallery.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
.ug-videoplayer-wrapper video{
height:100%;
width:100%;
visibility: visible !important;
}


.---------General_Styles--------{}

.ug-rtl{
Expand Down
52 changes: 35 additions & 17 deletions source/unitegallery/js/ug-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ function UniteGalleryMain(){
function fillItemsArray(arrChildren){

g_arrItems = [];

var isMobile = t.isMobileMode();

var numIndex = 0;
Expand Down Expand Up @@ -626,23 +626,33 @@ function UniteGalleryMain(){
jQuery.removeData(objChild, "lazyload-src");
}

//get the big image
var imageSrc = objChild.data("image");
if(!imageSrc || typeof imageSrc == "undefined")
imageSrc = objChild.attr("src");
//src is thumb
var urlImage = objChild.data("image");
var urlThumb = objChild.data("thumb");

var dataThumb = objChild.data("thumb");
if(typeof(urlImage) == "undefined")
urlImage = null;

//if exists data-thumb, then the big image is src
if(typeof dataThumb != "undefined" && dataThumb != ""){
objItem.urlThumb = dataThumb;
objItem.urlImage = imageSrc;
//objChild.attr("src", dataThumb);
}else{
//if not, the thumb is src
objItem.urlThumb = imageSrc;
objItem.urlImage = objChild.data("image");
}
if(typeof(urlThumb) == "undefined")
urlThumb = null;

var imageSrc = objChild.attr("src");

if(!urlImage)
urlImage = imageSrc;

if(!urlThumb)
urlThumb = imageSrc;

if(!urlThumb)
urlThumb = urlImage;

if(!urlImage)
urlImage = urlThumb;


objItem.urlThumb = urlThumb;
objItem.urlImage = urlImage;

objItem.title = objChild.attr("alt");

Expand All @@ -653,8 +663,12 @@ function UniteGalleryMain(){

}else{

if(itemType == "image")
if(itemType == "image"){
trace("Problematic gallery item found:");
trace(objChild);
trace("Please look for some third party js script that could add this item to the gallery");
throw new Error("The item should not be image type");
}

objItem.urlThumb = objChild.data("thumb");
objItem.title = objChild.data("title");
Expand Down Expand Up @@ -1181,6 +1195,7 @@ function UniteGalleryMain(){

storeLastSize();
g_objGallery.trigger(t.events.SIZE_CHANGE);

}

}
Expand Down Expand Up @@ -1283,6 +1298,9 @@ function UniteGalleryMain(){
g_functions.whenContiniousEventOver("gallery_resize", onGalleryResized, g_temp.resizeDelay);
});

//check resize once in a time
setInterval(onGalleryResized, 2000);

//fullscreen:
g_functions.addFullScreenChangeEvent(onFullScreenChange);

Expand Down
22 changes: 22 additions & 0 deletions source/unitegallery/release_log.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
version 1.7.37

-bug fix: fixed the thumb image as big image bug

version 1.7.36

-protection: made some protection against video visibility:hidden
-protection: added some protection against js scripts that add additional items inside the gallery
-change: add a check if the gallery resized once in 2 seconds

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
1 change: 1 addition & 0 deletions source/unitegallery/themes/default/ug-theme-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ function UGTheme_default(){
g_objSlider.setPosition(sliderLeft, sliderTop);
}


/**
* check if need to hide the panel according the options.
*/
Expand Down

0 comments on commit 1e6f328

Please sign in to comment.