MCPcopy Index your code
hub / github.com/TruthHun/BookStack / showError

Function showError

static/js/main.js:3–9  ·  view source on GitHub ↗
($msg,$id)

Source from the content-addressed store, hash-verified

1
2
3function showError($msg,$id) {
4 if(!$id){
5 $id = "#form-error-message"
6 }
7 $($id).addClass("error-message").removeClass("success-message").text($msg);
8 return false;
9}
10
11function showSuccess($msg,$id) {
12 if(!$id){

Callers 2

markdown.jsFile · 0.70
html-editor.jsFile · 0.70

Calls 2

textMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected