Hi,

the body of Gnoga.Gui.Element.Toggle_Class concatenates
strings for calling a jQuery function, albeit so that an argument is
without a pair of quotes. Making the body resemble that of
Add_Class and Remove_Class fixes it for me.

Cheers,
Georg
diff --git a/src/gnoga-gui-element.adb b/src/gnoga-gui-element.adb
index 85232d6..918b5a9 100644
--- a/src/gnoga-gui-element.adb
+++ b/src/gnoga-gui-element.adb
@@ -1530,7 +1530,7 @@ package body Gnoga.Gui.Element is
    is
    begin
       Element.jQuery_Execute
-        ("toggleClass(" & Escape_Quotes (Class_Name) & ")");
+        ("toggleClass(""" & Escape_Quotes (Class_Name) & """)");
    end Toggle_Class;
 
    -------------------------
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to