- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2016 01:15 PM
I have made a clone of the "SC Categories" widget, but I can't save it because of an error in a part of the script I haven't changed. It's in the Client controller field:
I get the error "Missing name in function declaration" - but the original widget uses this code - so what can I do?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2016 01:20 PM
If you scroll down and click on the UI Action: "Open in Widget Editor"
You will be able to save it in the new window that opens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2023 03:59 PM
I was able to get rid of the error by adding
api.controller =
before the function
api.controller = function() {
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2024 05:46 AM
Hi ,
After cloning the widget :
at the client section add this : "api.controller=" at the beginning :
function link(..){
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2024 07:04 AM