Created
November 12, 2015 17:56
-
-
Save godmar/e5c2eeeb3e38693f6497 to your computer and use it in GitHub Desktop.
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
// fix for https://gist.github.com/mreidsma/69a42480f157647cd710#file-summonalerts-js-L4 | |
// Set the text of the alert | |
var message = 'The Database of Broken Dreams is currently unavailable.'; | |
// Turn the alert on or off (true = on, false = off) | |
var showAlert = false; | |
angular.module('summonApp.directives').directive("resultsFeed", | |
function() { | |
return { | |
link: function (scope, iElement) { | |
if (showAlert) | |
iElement | |
.find('ul.list-unstyled') | |
.prepend('<div style="color: #a94442;background-color: #f2dede;border-color: #ebccd1;padding: 15px;margin-bottom: 20px;border: 1px solid transparent;border-radius: 4px;">' + message + '</div>'); | |
} | |
} | |
}); |
shukinn
commented
Mar 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment