MCPcopy Create free account
hub / github.com/TruthHun/BookStack / showError

Function showError

static/js/editor.js:187–193  ·  view source on GitHub ↗
($msg,$id)

Source from the content-addressed store, hash-verified

185});
186
187function showError($msg,$id) {
188 if(!$id){
189 $id = "#form-error-message"
190 }
191 $($id).addClass("error-message").removeClass("success-message").text($msg);
192 return false;
193}
194
195function showSuccess($msg,$id) {
196 if(!$id){

Callers

nothing calls this directly

Calls 2

textMethod · 0.80
$Function · 0.50

Tested by

no test coverage detected