-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
124 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
public/lib/js/bootstrap-color-picker/css/bootstrap-colorpicker.min.css
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
public/lib/js/bootstrap-color-picker/css/bootstrap-colorpicker.min.css.map
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-557 Bytes
...ic/lib/js/bootstrap-color-picker/img/bootstrap-colorpicker/alpha-horizontal.png
Binary file not shown.
Binary file removed
BIN
-488 Bytes
public/lib/js/bootstrap-color-picker/img/bootstrap-colorpicker/alpha.png
Binary file not shown.
Binary file removed
BIN
-478 Bytes
public/lib/js/bootstrap-color-picker/img/bootstrap-colorpicker/hue-horizontal.png
Binary file not shown.
Binary file removed
BIN
-504 Bytes
public/lib/js/bootstrap-color-picker/img/bootstrap-colorpicker/hue.png
Binary file not shown.
Binary file removed
BIN
-4.05 KB
public/lib/js/bootstrap-color-picker/img/bootstrap-colorpicker/saturation.png
Binary file not shown.
5 changes: 0 additions & 5 deletions
5
public/lib/js/bootstrap-color-picker/js/bootstrap-colorpicker.min.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
module.exports = (function ($) | ||
{ | ||
|
||
function NotificationFactory() | ||
{ | ||
} | ||
|
||
function mapTypeToCSSStyle(type) | ||
{ | ||
if (type === "success") | ||
return "pathwayMapper-success" | ||
else if (type === "fail") | ||
return "pathwayMapper-fail" | ||
|
||
} | ||
|
||
NotificationFactory.prototype.createNotification = function(message, type) | ||
{ | ||
|
||
var mappedCSSClass = mapTypeToCSSStyle(type); | ||
|
||
$.notify({ | ||
// options | ||
icon: 'glyphicon glyphicon-ok', | ||
message: message | ||
},{ | ||
// settings | ||
element: 'body', | ||
position: null, | ||
type: mappedCSSClass, | ||
allow_dismiss: true, | ||
newest_on_top: false, | ||
showProgressbar: false, | ||
placement: { | ||
from: "bottom", | ||
align: "right" | ||
}, | ||
delay: 5000, | ||
offset: 20, | ||
spacing: 10, | ||
z_index: 1031, | ||
mouse_over: null, | ||
animate: { | ||
enter: 'animated fadeInUp', | ||
exit: 'animated fadeOut' | ||
} | ||
}); | ||
} | ||
|
||
return new NotificationFactory(); | ||
|
||
})(window.$); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters