Skip to content

Commit

Permalink
another misplaced comma
Browse files Browse the repository at this point in the history
@leonidsakharov  pointed out another misplaced comma
  • Loading branch information
theand committed Jul 27, 2012
1 parent ec5f77d commit 958ecab
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions js/noty/themes/default.js
@@ -1,4 +1,4 @@
;(function($) {
;(function($) {

$.noty.themes.defaults = {
name: 'defaults',
Expand Down Expand Up @@ -38,12 +38,12 @@
}
},
style: function() {

this.$bar.css({
overflow: 'hidden',
background: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAYAAAAPOoFWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPZJREFUeNq81tsOgjAMANB2ov7/7ypaN7IlIwi9rGuT8QSc9EIDAsAznxvY4pXPKr05RUE5MEVB+TyWfCEl9LZApYopCmo9C4FKSMtYoI8Bwv79aQJU4l6hXXCZrQbokJEksxHo9KMOgc6w1atHXM8K9DVC7FQnJ0i8iK3QooGgbnyKgMDygBWyYFZoqx4qS27KqLZJjA1D0jK6QJcYEQEiWv9PGkTsbqxQ8oT+ZtZB6AkdsJnQDnMoHXHLGKOgDYuCWmYhEERCI5gaamW0bnHdA3k2ltlIN+2qKRyCND0bhqSYCyTB3CAOc4WusBEIpkeBuPgJMAAX8Hs1NfqHRgAAAABJRU5ErkJggg==') repeat-x scroll left top #fff"
});

this.$message.css({
fontSize: '13px',
lineHeight: '16px',
Expand All @@ -52,7 +52,7 @@
width: 'auto',
position: 'relative'
});

this.$closeButton.css({
position: 'absolute',
top: 4, right: 4,
Expand All @@ -61,27 +61,27 @@
display: 'none',
cursor: 'pointer'
});

this.$buttons.css({
padding: 5,
textAlign: 'right',
borderTop: '1px solid #ccc',
backgroundColor: '#fff',
backgroundColor: '#fff'
});

this.$buttons.find('button').css({
marginLeft: 5
});

this.$buttons.find('button:first').css({
marginLeft: 0
});

this.$bar.bind({
mouseenter: function() { $(this).find('.noty_close').fadeIn(); },
mouseleave: function() { $(this).find('.noty_close').fadeOut(); }
});

switch (this.options.layout.name) {
case 'top':
this.$bar.css({
Expand Down Expand Up @@ -126,22 +126,22 @@
});
break;
}

switch (this.options.type) {
case 'alert': case 'notification':
this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'}); break;
case 'warning':
this.$bar.css({backgroundColor: '#FFEAA8', borderColor: '#FFC237', color: '#826200'});
this.$bar.css({backgroundColor: '#FFEAA8', borderColor: '#FFC237', color: '#826200'});
this.$buttons.css({borderTop: '1px solid #FFC237'}); break;
case 'error':
this.$bar.css({backgroundColor: 'red', borderColor: 'darkred', color: '#FFF'});
this.$message.css({fontWeight: 'bold'});
this.$message.css({fontWeight: 'bold'});
this.$buttons.css({borderTop: '1px solid darkred'}); break;
case 'information':
this.$bar.css({backgroundColor: '#57B7E2', borderColor: '#0B90C4', color: '#FFF'});
this.$bar.css({backgroundColor: '#57B7E2', borderColor: '#0B90C4', color: '#FFF'});
this.$buttons.css({borderTop: '1px solid #0B90C4'}); break;
case 'success':
this.$bar.css({backgroundColor: 'lightgreen', borderColor: '#50C24E', color: 'darkgreen'});
this.$bar.css({backgroundColor: 'lightgreen', borderColor: '#50C24E', color: 'darkgreen'});
this.$buttons.css({borderTop: '1px solid #50C24E'});break;
default:
this.$bar.css({backgroundColor: '#FFF', borderColor: '#CCC', color: '#444'}); break;
Expand Down

1 comment on commit 958ecab

@yeskarthik
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On IE 7 and 8 am getting an error :
Line 88 of jquery.noty.js self.options.theme.style.apply(self); -- options.theme.style is null or not an object
Can you please fix it?

Please sign in to comment.