renaming plugin attributes - now uses - visible - togglable - toggled
[myslice.git] / engine / templates / plugin_setenv.js
index 605c89b..ae01f6d 100644 (file)
@@ -1,6 +1,6 @@
 {# from plugin.php Plugin.render() #}
 {# Plugin initialization (if the plugin has the right structure) #}
-if (typeof jQuery('#{{ uuid }}').{{ classname }} != 'undefined') {
-    jQuery('#{{ uuid }}').{{ classname }}({{ settings_json|safe }});
+if (typeof jQuery('#plugin-{{ uuid }}').{{ classname }} != 'undefined') {
+    jQuery('#plugin-{{ uuid }}').{{ classname }}({{ settings_json|safe }});
     {#jQuery('#{{ uuid }}').{{ classname }}('show');#}
 };