Skip to content
Snippets Groups Projects
Commit 0b022db3 authored by Robert Lange's avatar Robert Lange
Browse files

refs #21369 [finc] remove inline code; addendum: fix account_ajax.js, check if items exists

parent 0897036c
No related merge requests found
...@@ -252,8 +252,12 @@ $(document).ready(function registerAccountAjax() { ...@@ -252,8 +252,12 @@ $(document).ready(function registerAccountAjax() {
/* finc specific */ /* finc specific */
$(document).ready(function () { $(document).ready(function () {
countables = new Array; var menuItems = $('.itemCount');
$('.itemCount').each(function() { if(menuItems.length === 0) {
return;
}
var countables = new Array;
menuItems.each(function() {
countables.push($(this).attr('id')); countables.push($(this).attr('id'));
}); });
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment