Skip to content

Commit

Permalink
Updated the build files, added the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Stevens committed Nov 20, 2014
1 parent dfaf8d0 commit c6a4204
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 11 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ Live demo's can be found on the following codepen collection:
## [Codepen Collection](http://codepen.io/collection/Jhcpi/)

##Changelog
**0.8.0** - TBE TODO
* Code clean up
* Testing
* Latest angular support
* [Finding a solution for this issue](https://github.com/JanStevens/angular-growl-2/issues/54)

**0.7.2** - 20 Nov 2014
* Possibility to toggle the translation of messages (@schoes) [pull #55](https://github.com/JanStevens/angular-growl-2/pull/55)
* Check if the response is undefined (Offline Connections) (@brunoporto) [pull #50](https://github.com/JanStevens/angular-growl-2/pull/50)
* Prevent NPEs when working with server-side messages (@madhead) [pull #45](https://github.com/JanStevens/angular-growl-2/pull/45)
* Added a general method for setting the Growl type based on a server response (@madhead) [pull #41](https://github.com/JanStevens/angular-growl-2/pull/41)
* Split Growl directive in a growl factory added a way to programatically close messages and a setText to update the message text (@chasemgray) [pull #38](https://github.com/JanStevens/angular-growl-2/pull/38)

**0.7.0** - 10 Aug 2014
* Added new documentation website with examples instead of this readme.
* Growl Containers are now responsive for mobile devices (@tlvince) [pull #17](https://github.com/JanStevens/angular-growl-2/pull/17)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"name": "angular-growl-v2",
"description": "growl like notifications for angularJS projects, using bootstrap alert classes",
"version": "0.7.1",
"version": "0.7.2",
"homepage": "http://janstevens.github.io/angular-growl-2",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion build/angular-growl.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions build/angular-growl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* angular-growl-v2 - v0.7.1 - 2014-10-06
* angular-growl-v2 - v0.7.2 - 2014-11-20
* http://janstevens.github.io/angular-growl-2
* Copyright (c) 2014 Marco Rinck,Jan Stevens; Licensed MIT
*/
Expand Down Expand Up @@ -92,7 +92,7 @@ angular.module('angular-growl').provider('growl', function () {
error: null,
warning: null,
info: null
}, _messagesKey = 'messages', _messageTextKey = 'text', _messageTitleKey = 'title', _messageSeverityKey = 'severity', _onlyUniqueMessages = true, _messageVariableKey = 'variables', _referenceId = 0, _inline = false, _position = 'top-right', _disableCloseButton = false, _disableIcons = false, _reverseOrder = false, _disableCountDown = false;
}, _messagesKey = 'messages', _messageTextKey = 'text', _messageTitleKey = 'title', _messageSeverityKey = 'severity', _onlyUniqueMessages = true, _messageVariableKey = 'variables', _referenceId = 0, _inline = false, _position = 'top-right', _disableCloseButton = false, _disableIcons = false, _reverseOrder = false, _disableCountDown = false, _translateMessages = true;
this.globalTimeToLive = function (ttl) {
if (typeof ttl === 'object') {
for (var k in ttl) {
Expand All @@ -108,6 +108,9 @@ angular.module('angular-growl').provider('growl', function () {
}
}
};
this.globalTranslateMessages = function (translateMessages) {
_translateMessages = translateMessages;
};
this.globalDisableCloseButton = function (disableCloseButton) {
_disableCloseButton = disableCloseButton;
};
Expand Down Expand Up @@ -149,7 +152,7 @@ angular.module('angular-growl').provider('growl', function () {
'growl',
function ($q, growl) {
function checkResponse(response) {
if (response.data[_messagesKey] && response.data[_messagesKey].length > 0) {
if (response !== undefined && response.data[_messagesKey] && response.data[_messagesKey].length > 0) {
growl.addServerMessages(response.data[_messagesKey]);
}
}
Expand Down Expand Up @@ -181,7 +184,7 @@ angular.module('angular-growl').provider('growl', function () {
} catch (e) {
}
function broadcastMessage(message) {
if (translate) {
if (translate && message.translateMessage) {
message.text = translate(message.text, message.variables);
} else {
var polation = $interpolate(message.text);
Expand All @@ -206,6 +209,7 @@ angular.module('angular-growl').provider('growl', function () {
disableCountDown: _config.disableCountDown === undefined ? _disableCountDown : _config.disableCountDown,
position: _config.position || _position,
referenceId: _config.referenceId || _referenceId,
translateMessage: _config.translateMessage === undefined ? _translateMessages : _config.translateMessage,
destroy: function () {
growlMessages.deleteMessage(message);
},
Expand Down
2 changes: 1 addition & 1 deletion build/angular-growl.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/angular-growl.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-growl-v2",
"version": "0.7.1",
"version": "0.7.2",
"description": "growl like notifications for angularJS projects, using bootstrap alert classes",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/growlFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ angular.module("angular-growl").provider("growl", function() {
*/
this.serverMessagesInterceptor = ['$q', 'growl', function ($q, growl) {
function checkResponse(response) {
if (response!=undefined && response.data[_messagesKey] && response.data[_messagesKey].length > 0) {
if (response !== undefined && response.data[_messagesKey] && response.data[_messagesKey].length > 0) {
growl.addServerMessages(response.data[_messagesKey]);
}
}
Expand Down

0 comments on commit c6a4204

Please sign in to comment.