2sic / 2sxc

DNN + 2sxc = #DNNCMS - This tool helps web designers and developers prepare great looking content in DNN (DotNetNuke). It's like mixing DNN with Umbraco and Drupal :)
http://2sxc.org
MIT License
145 stars 40 forks source link

Template Custom Button Error #1611

Closed tpperlman closed 6 years ago

tpperlman commented 6 years ago

Bug Report about JS Development

There must have been a recent change in custom buttons because I am getting a new error in old code for a custom button.

Current behavior Custom button code results in an error:

event is not defined : inpage.min.js:8:15183

Expected behavior The custom code should perform whatever action is requested.

Minimal reproduction of the problem with instructions Add the basic custom button code from the wiki into a template and click the button:

<ul class="sc-menu" data-toolbar='{
    "groups": [{ 
        "buttons": [{ 
            "command": { 
                "action": "custom", 
                "customCode": "alert(\"custom button!\")"
            }
        }]
    }]
}'></ul>
iJungleboy commented 6 years ago

ok, we'll check.

tvatavuk commented 6 years ago

Issue reproduced in current Firefox.

tpperlman commented 6 years ago

Thank you, guys!!