templates/project/lib/iasd-bootstrap.js in iasd-bootstrap-sass-1.1.0 vs templates/project/lib/iasd-bootstrap.js in iasd-bootstrap-sass-1.2.0
- old
+ new
@@ -1,7 +1,7 @@
/*!
- * IASD Bootstrap v1.1.0 (http://styleguide.adventistas.org)
+ * IASD Bootstrap v1.2.0 (http://styleguide.adventistas.org)
* Copyright 2014-2014 Igreja Adventista do Sétimo Dia
* Licensed under MIT (https://github.com/igrejaadventista/styleguide/blob/master/LICENSE)
*/
/* Modernizr 2.6.2 (Custom Build) | MIT & BSD
@@ -1757,14 +1757,10 @@
iasdFilterToggleActive.handleEvents();
iasdLoadMorePosts.handleEvents();
iasdReturnPageNav.handleEvents();
});
- $(window).load(function() {
- iasdReturnPageNav.autoCollapse();
- });
-
/* ------------------------------------------ */
var iasdCloseModal = {
closeModal : function(e){
$('.modal').each(function(){
@@ -1791,11 +1787,11 @@
var iasdReturnPageNav = {
handleEvents : function(){
- $('.iasd-plugin-return_page .toggle-visibility-link').on('click', iasdReturnPageNav.toggleVisibility);
+ $('body').on('click','.iasd-plugin-return_page .toggle-visibility-link', iasdReturnPageNav.toggleVisibility);
},
toggleVisibility : function(e){
jqThis = $(this);
jqThis.parent().toggleClass('collapsed');
@@ -1804,19 +1800,9 @@
} else{
jqThis.attr("title", "Clique para fechar este link");
}
e.preventDefault();
},
-
- autoCollapse : function(){
- var jqThis = $('.iasd-plugin-return_page')
- jqThis.removeClass('collapsed');
- jqThis.find('.toggle-visibility-link').attr("title", "Clique para fechar este link");
- setTimeout(function() {
- jqThis.addClass('collapsed');
- jqThis.find('.toggle-visibility-link').attr("title", "Clique para visualizar o link da página anterior");
- }, 5000);
- }
};
var iasdLoadMorePosts = {
\ No newline at end of file