Commit 32aacc155b528bc68b7d917165d17f592bfc427f

Authored by Antonio Terceiro
1 parent adbab4ff

Make sure the controls are always visible

Move max-width and max-height properties to the <img>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
public/javascripts/article.js
... ... @@ -91,7 +91,7 @@ jQuery(function($) {
91 91 var $item = $(this).closest('.item');
92 92 var html_selector = $item.attr('data-item');
93 93 var img = $item.find(html_selector).find('img').attr('src');
94   - $.colorbox({ html: '<div class="item" data-item="div"><div><img src="' + img + '" style="max-width: 580px; max-height: 580px"/></div>' + '<div class="button-bar" style="padding-top: 5px;">' + add_to_text_button('with-text') + '&nbsp;&nbsp;&nbsp;' + close_button('with-text') + '</div></div>', maxWidth: '640px', maxHeight: '640px', scrolling: false });
  94 + $.colorbox({ html: '<div class="item" data-item="div"><div><img src="' + img + '" style="max-width: 640px; max-height: 480px"/></div>' + '<div class="button-bar" style="padding-top: 5px;">' + add_to_text_button('with-text') + '&nbsp;&nbsp;&nbsp;' + close_button('with-text') + '</div></div>', scrolling: false });
95 95 return false;
96 96 });
97 97 $('a.close').live('click', function() {
... ...