From 2d80dcb4d6eb3bc04ca06fc2284dff18ecac548f Mon Sep 17 00:00:00 2001 From: nicola Date: Thu, 14 Apr 2022 12:18:17 +0200 Subject: [PATCH] Tentativo di attivazione dettagli con Jquery --- index_Nik.html | 2 +- js/guimanager.js | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/index_Nik.html b/index_Nik.html index 3d9fce7..0f784d2 100644 --- a/index_Nik.html +++ b/index_Nik.html @@ -258,7 +258,7 @@ for="forma" class="lh-copy">Verbo volgare diff --git a/js/guimanager.js b/js/guimanager.js index 2440693..547b035 100644 --- a/js/guimanager.js +++ b/js/guimanager.js @@ -127,7 +127,18 @@ $(document).ready(function() { $(this).addClass('bg-white').addClass('red'); $(this).siblings().removeClass('bg-white').removeClass('red'); }); - + + //******* Nik added **** + + jQuery(document).delegate('#details-image'), 'click', function(e) { + e.preventDefault(); + alert("ciao"); + $('#categoriaverbo').show(); + + }; + + // **** end Nik ***** + jQuery(document).delegate('a.add-record', 'click', function(e) { e.preventDefault(); var content = jQuery('#categoriagrammaticale >div'), @@ -140,7 +151,6 @@ $(document).ready(function() { element.appendTo('#condizioni'); element.find('.sn').html(size); grammarconditions = grammarconditions + 1 - if (size == 1) jQuery('#grammarbutton').attr('style', "display:block;") }); @@ -161,6 +171,7 @@ $(document).ready(function() { }); + jQuery(document).delegate('select.catgram', 'change', function(e) { e.preventDefault();