lib/goatmail/assets/javascripts/application.js in goatmail-1.0.0 vs lib/goatmail/assets/javascripts/application.js in goatmail-1.1.0

- old
+ new

@@ -1,9 +1,13 @@ jQuery(function($) { $('.message_list').on('click', '.message', function(e) { var self = $(this); var link = self.find('a').attr('href'); - $('iframe').attr('src', link); + if ($(window).width() > 979) { + $('iframe').attr('src', link); + } else { + window.open(link); + } self.parent().find('.active').removeClass('active'); self.addClass('active'); }); $('#toggle_selection').on('click', function(e) { var self = $(this);