-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
"action": "sass", | ||
"name": "content-localization", | ||
"source": "Assets/contentLocalization.scss", | ||
"tags": ["admin", "dashboard", "scss"] | ||
} | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
.content-localization .btn-link:hover, | ||
.content-localization .btn-link:focus { | ||
text-decoration: none; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
{ | ||
"action": "min", | ||
"name": "content-types", | ||
"source": "Assets/js/list-items-filter.js", | ||
"dest": "wwwroot/Scripts/", | ||
"tags": ["admin", "dashboard", "js"] | ||
} | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,77 @@ | ||
/* | ||
** NOTE: This file is generated by Gulp and should not be edited directly! | ||
** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp. | ||
*/ | ||
|
||
document.addEventListener('DOMContentLoaded', function () { | ||
var searchBox = document.getElementById('search-box'); | ||
var allRows = Array.from(document.querySelectorAll("#list-items > li[data-filter-value]")); | ||
var listAlert = document.getElementById('list-alert'); | ||
var createButton = document.getElementById("btnCreate"); | ||
var visibleRows = allRows; | ||
const searchBox = document.getElementById('search-box'); | ||
const allRows = Array.from(document.querySelectorAll("#list-items > li[data-filter-value]")); | ||
const listAlert = document.getElementById('list-alert'); | ||
const createButton = document.getElementById("btnCreate"); | ||
|
||
let visibleRows = allRows; | ||
|
||
// On each keypress filter the list of types | ||
searchBox.addEventListener('keyup', function (e) { | ||
visibleRows = []; | ||
var search = e.target.value.toLowerCase().trim(); | ||
|
||
// On ESC, clear the search box and display all types | ||
if (e.key === "Escape" || search == '') { | ||
searchBox.value = ''; | ||
|
||
// On each keypress filter the list of types | ||
searchBox.addEventListener('keyup', function (e) { | ||
visibleRows = []; | ||
var search = e.target.value.toLowerCase().trim(); | ||
allRows.forEach(row => { | ||
row.classList.remove("d-none"); | ||
row.classList.remove("first-child-visible"); | ||
row.classList.remove("last-child-visible"); | ||
|
||
// On ESC, clear the search box and display all types | ||
if (e.key === "Escape" || search == '') { | ||
searchBox.value = ''; | ||
allRows.forEach(function (row) { | ||
row.classList.remove("d-none"); | ||
row.classList.remove("first-child-visible"); | ||
row.classList.remove("last-child-visible"); | ||
visibleRows.push(row); | ||
}); | ||
} else { | ||
allRows.forEach(function (row) { | ||
var text = row.getAttribute('data-filter-value').toLowerCase(); | ||
var found = text.indexOf(search) > -1; | ||
if (found) { | ||
row.classList.remove("d-none"); | ||
row.classList.remove("first-child-visible"); | ||
row.classList.remove("last-child-visible"); | ||
row.classList.remove("border-top"); | ||
row.classList.remove("rounded-top"); | ||
visibleRows.push(row); | ||
visibleRows.push(row); | ||
}); | ||
} else { | ||
row.classList.add("d-none"); | ||
allRows.forEach(row => { | ||
let text = row.getAttribute('data-filter-value').toLowerCase(); | ||
let found = text.indexOf(search) > -1; | ||
|
||
if (found) { | ||
row.classList.remove("d-none"); | ||
row.classList.remove("first-child-visible"); | ||
row.classList.remove("last-child-visible"); | ||
row.classList.remove("border-top"); | ||
row.classList.remove("rounded-top"); | ||
|
||
visibleRows.push(row); | ||
} | ||
else { | ||
row.classList.add("d-none"); | ||
} | ||
}); | ||
|
||
if (visibleRows.length > 0) { | ||
visibleRows[0].classList.add('first-child-visible'); | ||
visibleRows[0].classList.add('border-top'); | ||
visibleRows[0].classList.add("rounded-top"); | ||
|
||
visibleRows[visibleRows.length - 1].classList.add('last-child-visible'); | ||
} | ||
} | ||
|
||
if (visibleRows.length == 0) { | ||
listAlert.classList.remove("d-none"); | ||
} | ||
else { | ||
listAlert.classList.add("d-none"); | ||
} | ||
}); | ||
if (visibleRows.length > 0) { | ||
visibleRows[0].classList.add('first-child-visible'); | ||
visibleRows[0].classList.add('border-top'); | ||
visibleRows[0].classList.add("rounded-top"); | ||
visibleRows[visibleRows.length - 1].classList.add('last-child-visible'); | ||
} | ||
} | ||
if (visibleRows.length == 0) { | ||
listAlert.classList.remove("d-none"); | ||
} else { | ||
listAlert.classList.add("d-none"); | ||
} | ||
|
||
// On Enter, redirect to the edit page if the type exists or the create page with a suggestion | ||
if (e.key === "Enter" && search != '') { | ||
if (visibleRows.length > 0) { | ||
var link = visibleRows[0].querySelector('a.edit-button'); | ||
var hrefValue = link.getAttribute("href"); | ||
if (hrefValue) { | ||
location.href = hrefValue; | ||
// On Enter, redirect to the edit page if the type exists or the create page with a suggestion | ||
if (e.key === "Enter" && search != '') { | ||
|
||
if (visibleRows.length > 0) { | ||
let link = visibleRows[0].querySelector('a.edit-button'); | ||
|
||
let hrefValue = link.getAttribute("href"); | ||
|
||
if (hrefValue) { | ||
location.href = hrefValue; | ||
} | ||
} else { | ||
location.href = createButton.getAttribute("href") + "?suggestion=" + search; | ||
} | ||
return; | ||
} | ||
} else { | ||
location.href = createButton.getAttribute("href") + "?suggestion=" + search; | ||
} | ||
return; | ||
} | ||
}); | ||
}); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[ | ||
{ | ||
"action": "sass", | ||
"name": "content-localization", | ||
"source": "Assets/scss/Contents.scss", | ||
"tags": ["admin", "dashboard", "scss"] | ||
}, | ||
{ | ||
"action": "sass", | ||
"name": "content-localization", | ||
"source": "Assets/scss/audittrail-disabledcontent.scss", | ||
"tags": ["admin", "dashboard", "scss"] | ||
}, | ||
{ | ||
"action": "min", | ||
"name": "content-localization", | ||
"source": "Assets/js/audittrail-disabledcontent.js", | ||
"dest": "wwwroot/Scripts/", | ||
"tags": ["admin", "dashboard", "js"] | ||
}, | ||
{ | ||
"action": "min", | ||
"name": "content-localization", | ||
"source": "Assets/js/content-type-check-all.js", | ||
"dest": "wwwroot/Scripts/", | ||
"tags": ["admin", "dashboard", "js"] | ||
} | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
/* | ||
** NOTE: This file is generated by Gulp and should not be edited directly! | ||
** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp. | ||
*/ | ||
|
||
$(function () { | ||
$('.disabledContent__wrapper input').prop('disabled', true); | ||
$('.disabledContent__wrapper textarea').prop('disabled', true); | ||
$('.disabledContent__wrapper button').prop('disabled', true); | ||
$('.disabledContent__wrapper .widget-editor .widget-editor-header .widget-editor-btn-toggle').prop('disabled', false); | ||
setTimeout(function () { | ||
$('.disabledContent__wrapper input').prop('disabled', true); | ||
$('.disabledContent__wrapper textarea').prop('disabled', true); | ||
}); | ||
}); | ||
$('.disabledContent__wrapper button').prop('disabled', true); | ||
$('.disabledContent__wrapper .widget-editor .widget-editor-header .widget-editor-btn-toggle').prop('disabled', false); | ||
|
||
setTimeout(function () { | ||
$('.disabledContent__wrapper textarea').prop('disabled', true); | ||
}); | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.