Ralph Bean avatar Ralph Bean committed 8b6fadb

Match upstream tw2.jqplugins.ui change for events dict.

Comments (0)

Files changed (3)

 
 setup(
     name='tw2.jqplugins.fg',
-    version='2.0b7',
+    version='2.0b8',
     description='toscawidgets2 wrapper for random filament group tools',
     long_description=long_description,
     author='Ralph Bean',
     license='MIT',
     url='http://github.com/ralphbean/tw2.jqplugins.fg',
     install_requires=[
-        "tw2.core>=2.0b2",
+        "tw2.core>=2.0b5",
         "tw2.jquery",
-        "tw2.jqplugins.ui>=2.0b7",
+        "tw2.jqplugins.ui>=2.0b20",
         ],
     extras_require = {
         'genshi': _extra_genshi,

tw2/jqplugins/fg/templates/menu.html

         var opts = ${w.options};
         opts['content'] = $('#${w.selector}\\:target').html();
         $("#${w.selector}").${w.jqmethod}(opts);
-        <py:if test="w.click">
-        $("#${w.selector}").click(${w.click});
+        <py:if test="'click' in w.events">
+        $("#${w.selector}").click(${w.events['click']});
         </py:if>
     });
 });

tw2/jqplugins/fg/templates/menu.mak

         var opts = ${w.options};
         opts['content'] = $('#${w.selector}\\:target').html();
         $("#${w.selector}").${w.jqmethod}(opts);
-		% if w.click:
-        $("#${w.selector}").click(${w.click});
+		% if 'click' in w.events:
+        $("#${w.selector}").click(${w.events['click']});
 		% endif
     });
 });
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.