Commits

Ralph Bean committed 8b6fadb

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

  • Participants
  • Parent commits a37924f

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
     });
 });