Commit 4c6f253a2bf26d20e3ed12588e466264108a1f30
Exists in
master
and in
5 other branches
Merge branch 'merlin'
Showing
3 changed files
with
31 additions
and
18 deletions
Show diff stats
index.html
@@ -196,21 +196,20 @@ | @@ -196,21 +196,20 @@ | ||
196 | {{!-- <div class="container"> --}} | 196 | {{!-- <div class="container"> --}} |
197 | <article class="proposal-detail hide" id="proposal-item-{{id}}"> | 197 | <article class="proposal-detail hide" id="proposal-item-{{id}}"> |
198 | <div class="categories {{#each categories}}{{slug}}{{/each}}"> | 198 | <div class="categories {{#each categories}}{{slug}}{{/each}}"> |
199 | - | ||
200 | - <div class="select"> | ||
201 | - {{#each categories}} | ||
202 | - <div class="category proposal-category" data-category="{{slug}}"> | ||
203 | - <button class="go-back btn btn-default"> | ||
204 | - <span class="fa fa-reply"></span> | ||
205 | - Voltar | ||
206 | - </button> | ||
207 | - <a href="#/temas/{{slug}}/{{id}}" class="proposal-link" data-target="proposal-item-{{id}}">{{name}}</a> | ||
208 | - {{#select_proposal ../../article.children slug ../id}}{{/select_proposal}} | 199 | + |
200 | + <div class="row"> | ||
201 | + <div class="col-xs-12"> | ||
202 | + <div class="select"> | ||
203 | + {{#each categories}} | ||
204 | + <div class="category proposal-category" data-category="{{slug}}"> | ||
205 | + <button class="go-back btn btn-default"><span class="fa fa-reply"></span> Voltar</button> | ||
206 | + <a href="#/temas/{{slug}}/{{id}}" class="proposal-link" data-target="proposal-item-{{id}}">{{name}}</a> | ||
207 | + {{#select_proposal ../../article.children slug ../id}}{{/select_proposal}} | ||
208 | + </div> | ||
209 | + {{/each}} | ||
209 | </div> | 210 | </div> |
210 | - {{/each}} | 211 | + </div> |
211 | </div> | 212 | </div> |
212 | - | ||
213 | - | ||
214 | <div class="proposal-header"> | 213 | <div class="proposal-header"> |
215 | <div class="abstract"> | 214 | <div class="abstract"> |
216 | <img src="{{../host}}{{image.url}}" alt="Imagem de apresentação do programa."/> | 215 | <img src="{{../host}}{{image.url}}" alt="Imagem de apresentação do programa."/> |
js/jquery.equalHeights.js
@@ -5,12 +5,12 @@ $.fn.equalHeights = function(px) { | @@ -5,12 +5,12 @@ $.fn.equalHeights = function(px) { | ||
5 | $(this).each(function(index, item){ | 5 | $(this).each(function(index, item){ |
6 | var $item = $(item); | 6 | var $item = $(item); |
7 | $item.height('auto'); // force a 'recalc' height | 7 | $item.height('auto'); // force a 'recalc' height |
8 | - | ||
9 | - if ($item.height() > currentTallest) { currentTallest = $item.height(); } | 8 | + var h = $item.height(); |
9 | + if ( h > currentTallest) { currentTallest = h; } | ||
10 | if (!px && Number.prototype.pxToEm) { currentTallest = currentTallest.pxToEm(); } //use ems unless px is specified | 10 | if (!px && Number.prototype.pxToEm) { currentTallest = currentTallest.pxToEm(); } //use ems unless px is specified |
11 | // for ie6, set height since min-height isn't supported | 11 | // for ie6, set height since min-height isn't supported |
12 | if (typeof(document.body.style.minHeight) === 'undefined') { $item.css({'height': currentTallest}); } | 12 | if (typeof(document.body.style.minHeight) === 'undefined') { $item.css({'height': currentTallest}); } |
13 | - $item.css({'height': currentTallest}); | 13 | + $item.height(currentTallest); |
14 | }); | 14 | }); |
15 | return this; | 15 | return this; |
16 | }; | 16 | }; |
js/main.js
@@ -316,6 +316,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun | @@ -316,6 +316,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun | ||
316 | // this.randomProposalByTheme(['category-saude', 'category-seguranca-publica', 'category-educacao', 'category-reducao-da-pobreza']); | 316 | // this.randomProposalByTheme(['category-saude', 'category-seguranca-publica', 'category-educacao', 'category-reducao-da-pobreza']); |
317 | $('.proposal-item').show(); /* Show all programs */ | 317 | $('.proposal-item').show(); /* Show all programs */ |
318 | $('#proposal-group').show(); | 318 | $('#proposal-group').show(); |
319 | + $('.content').addClass('background'); | ||
319 | $('#proposal-categories').show(); | 320 | $('#proposal-categories').show(); |
320 | $('.proposal-category-items').hide(); | 321 | $('.proposal-category-items').hide(); |
321 | $('#nav-proposal-group a').addClass('active'); | 322 | $('#nav-proposal-group a').addClass('active'); |
@@ -701,7 +702,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun | @@ -701,7 +702,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun | ||
701 | e.preventDefault(); | 702 | e.preventDefault(); |
702 | var $bt = $(this); | 703 | var $bt = $(this); |
703 | if(!logged_in) { | 704 | if(!logged_in) { |
704 | - $('#login-button').click(); | 705 | + $('#login-panel').show(); |
705 | $('html, body').animate({scrollTop: 0}, 'fast'); | 706 | $('html, body').animate({scrollTop: 0}, 'fast'); |
706 | } else { | 707 | } else { |
707 | $.ajax({ | 708 | $.ajax({ |
@@ -837,7 +838,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun | @@ -837,7 +838,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun | ||
837 | $(document).click(function(e){ | 838 | $(document).click(function(e){ |
838 | var $target = $(e.target); | 839 | var $target = $(e.target); |
839 | 840 | ||
840 | - var isLoginButton = ($target.attr('id') === 'login-button'); | 841 | + var isLoginButton = ($target.closest('#login-button').length !== 0); |
841 | var requireLogin = $target.hasClass('require-main-login'); | 842 | var requireLogin = $target.hasClass('require-main-login'); |
842 | var isChildOfPanel = ($target.closest(loginPanelId).length !== 0); | 843 | var isChildOfPanel = ($target.closest(loginPanelId).length !== 0); |
843 | 844 | ||
@@ -1175,6 +1176,19 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun | @@ -1175,6 +1176,19 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun | ||
1175 | e.preventDefault(); | 1176 | e.preventDefault(); |
1176 | }); | 1177 | }); |
1177 | 1178 | ||
1179 | + // hack-fix IE iframe video over 9999 z-index div. | ||
1180 | + $('iframe').each(function(){ | ||
1181 | + var $iframe = $(this); | ||
1182 | + var url = $iframe.attr('src'); | ||
1183 | + var c = '?'; | ||
1184 | + | ||
1185 | + if(url.indexOf("?") != -1){ | ||
1186 | + c = "&"; | ||
1187 | + } | ||
1188 | + | ||
1189 | + $iframe.attr("src",url+c+"wmode=transparent"); | ||
1190 | + }); | ||
1191 | + | ||
1178 | }); | 1192 | }); |
1179 | 1193 | ||
1180 | window.addEventListener("message", function(ev) { | 1194 | window.addEventListener("message", function(ev) { |