From 20e28f3cbad804f62e157980fbd4048750d024e2 Mon Sep 17 00:00:00 2001 From: reemhashir Date: Thu, 5 Sep 2024 21:47:25 -0400 Subject: [PATCH] changes to indentation --- public/src/admin/settings/navigation.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/public/src/admin/settings/navigation.js b/public/src/admin/settings/navigation.js index 32b0dc0e08..f126443c31 100644 --- a/public/src/admin/settings/navigation.js +++ b/public/src/admin/settings/navigation.js @@ -11,7 +11,7 @@ define('admin/settings/navigation', [ ], function (translator, iconSelect, Benchpress, alerts) { const navigation = {}; let available; - console.log('REEM HASHIR'); + navigation.init = function () { available = ajaxify.data.available; $('#available').find('li .drag-item').draggable({ @@ -35,13 +35,13 @@ define('admin/settings/navigation', [ function onIconPickerClick() { const iconEl = $(this).find('i'); - console.log('Reem Hashir', iconEl); + console.log('Reem Hashir', iconEl); iconSelect.init(iconEl, onIconSelect); } function onIconSelect(el) { const newIconClass = el.attr('value'); - console.log('Reem Hashir', newIconClass); + console.log('Reem Hashir', newIconClass); const index = el.parents('[data-index]').attr('data-index'); $('#active-navigation [data-index="' + index + '"] i.nav-icon').attr('class', 'fa fa-fw ' + newIconClass); el.siblings('[name="iconClass"]').val(newIconClass); @@ -50,13 +50,13 @@ define('admin/settings/navigation', [ function onDropdownClick() { const el = $(this); - console.log("Dropdown element clicked:", el); + console.log('Dropdown element clicked:', el); const index = el.parents('[data-index]').attr('data-index'); - console.log("Element index:", index); // Log the index of the element + console.log('Element index:', index); // Log the index of the element $('#active-navigation [data-index="' + index + '"] i.dropdown-icon').toggleClass('hidden', !el.is(':checked')); } - console.log('Reem Hashir'); + console.log('Reem Hashir'); function onSelect() { const clickedIndex = $(this).attr('data-index'); selectIndex(clickedIndex); @@ -74,7 +74,8 @@ define('admin/settings/navigation', [ detailsForm.removeClass('hidden'); } } -//used ChatGPT to generate the helper functions + + // used ChatGPT to generate the helper functions function drop(ev, ui) { const id = ui.helper.attr('data-id'); const el = $('#active-navigation [data-id="' + id + '"]');