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 | 196 | {{!-- <div class="container"> --}} |
197 | 197 | <article class="proposal-detail hide" id="proposal-item-{{id}}"> |
198 | 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 | 210 | </div> |
210 | - {{/each}} | |
211 | + </div> | |
211 | 212 | </div> |
212 | - | |
213 | - | |
214 | 213 | <div class="proposal-header"> |
215 | 214 | <div class="abstract"> |
216 | 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 | 5 | $(this).each(function(index, item){ |
6 | 6 | var $item = $(item); |
7 | 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 | 10 | if (!px && Number.prototype.pxToEm) { currentTallest = currentTallest.pxToEm(); } //use ems unless px is specified |
11 | 11 | // for ie6, set height since min-height isn't supported |
12 | 12 | if (typeof(document.body.style.minHeight) === 'undefined') { $item.css({'height': currentTallest}); } |
13 | - $item.css({'height': currentTallest}); | |
13 | + $item.height(currentTallest); | |
14 | 14 | }); |
15 | 15 | return this; |
16 | 16 | }; | ... | ... |
js/main.js
... | ... | @@ -316,6 +316,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun |
316 | 316 | // this.randomProposalByTheme(['category-saude', 'category-seguranca-publica', 'category-educacao', 'category-reducao-da-pobreza']); |
317 | 317 | $('.proposal-item').show(); /* Show all programs */ |
318 | 318 | $('#proposal-group').show(); |
319 | + $('.content').addClass('background'); | |
319 | 320 | $('#proposal-categories').show(); |
320 | 321 | $('.proposal-category-items').hide(); |
321 | 322 | $('#nav-proposal-group a').addClass('active'); |
... | ... | @@ -701,7 +702,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun |
701 | 702 | e.preventDefault(); |
702 | 703 | var $bt = $(this); |
703 | 704 | if(!logged_in) { |
704 | - $('#login-button').click(); | |
705 | + $('#login-panel').show(); | |
705 | 706 | $('html, body').animate({scrollTop: 0}, 'fast'); |
706 | 707 | } else { |
707 | 708 | $.ajax({ |
... | ... | @@ -837,7 +838,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun |
837 | 838 | $(document).click(function(e){ |
838 | 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 | 842 | var requireLogin = $target.hasClass('require-main-login'); |
842 | 843 | var isChildOfPanel = ($target.closest(loginPanelId).length !== 0); |
843 | 844 | |
... | ... | @@ -1175,6 +1176,19 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun |
1175 | 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 | 1194 | window.addEventListener("message", function(ev) { | ... | ... |