Feat(SQL, UI): 1. Updated User Calc Stored Procedure with Search functionality from previous commit on Command and Dog tables. \n 2. Corrected functionality of active field trash and add icons instead of button with replaceable text. \n 3. Improved styling on Dog Command Link page.
This commit is contained in:
@@ -122,7 +122,7 @@ export default class DOM {
|
||||
else if (tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') {
|
||||
returnVal = element.value;
|
||||
}
|
||||
else if (tagName === 'BUTTON' && element.classList.contains(flagActive)) {
|
||||
else if (element.classList.contains(flagButton) && element.classList.contains(flagActive)) { // tagName === 'BUTTON'
|
||||
returnVal = element.classList.contains(flagDelete);
|
||||
}
|
||||
else if (tagName === 'TD') {
|
||||
@@ -218,4 +218,15 @@ export default class DOM {
|
||||
option.selected = optionJson.selected;
|
||||
return option;
|
||||
}
|
||||
|
||||
static escapeHtml(text) {
|
||||
const div = document.createElement('div');
|
||||
div.textContent = text;
|
||||
return div.innerHTML;
|
||||
}
|
||||
static unescapeHtml(html) {
|
||||
const div = document.createElement('div');
|
||||
div.innerHTML = html;
|
||||
return div.textContent || div.innerText || '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user