Permalink
Browse files

[js] Change the way that messages are displayed

  • Loading branch information...
1 parent 1d69044 commit d759ccb3c1c0e5b2ebdf8b42618b378835f2e47f @seliopou seliopou committed May 22, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 js/pageguide.js
View
@@ -240,12 +240,8 @@ tl.pg.PageGuide.prototype.show_message = function (new_index, left) {
$('html,body').animate({scrollTop: $(new_item).offset().top - 50}, 500);
}
- if (this.$message.is(":visible")) {
- this.roll_number($('span', this.$message), $(new_item).children('ins').html(), left);
- } else {
- $('span', this.$message).html($(new_item).children('ins').html());
- this.$message.show().animate({ height: "100px" }, 500);
- }
+ this.$message.not(':visible').show().animate({ 'height': '100px'}, 500);
+ this.roll_number($('span', this.$message), $(new_item).children('ins').html(), left);
};
tl.pg.PageGuide.prototype.roll_number = function (num_wrapper, new_text, left) {

0 comments on commit d759ccb

Please sign in to comment.