wpbsav
Diff Revisions
54
vs
55
for /SagreraWP/wp-content/themes/bsav/js/gallery.js
|
@@ -550,7 +550,9 @@ |
550 |
550 |
|
return new Date(b.date) - new Date(a.date); |
551 |
551 |
|
}); |
552 |
552 |
|
|
553 |
|
- |
Gallery.imagesCommons.reverse(); |
|
553 |
+ |
//si son post_type histories no alteramos el orden |
|
554 |
+ |
if( Gallery.currentPostType !== "histories" ) |
|
555 |
+ |
Gallery.imagesCommons.reverse(); |
554 |
556 |
|
|
555 |
557 |
|
Gallery.hideVideos(); |
556 |
558 |
|
|
|
@@ -798,6 +800,7 @@ |
798 |
800 |
|
$("#galleryHead .btn:first-child").val($(this).text()); |
799 |
801 |
|
|
800 |
802 |
|
var type = $(this).data( "type" ); |
|
803 |
+ |
Gallery.currentPostType = type; |
801 |
804 |
|
var language = $( "#qtranslate-chooser" ).find( '.dropdown-toggle li' ).context.URL.split( '/' ); |
802 |
805 |
|
Gallery.language = language[4]; |
803 |
806 |
|
|