Commit f2357346 authored by Ivan Tyagov's avatar Ivan Tyagov

Use Jquery. Update dependency list.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42326 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bf4b832
...@@ -65,7 +65,7 @@ gadget_title_dom_id = \'%s_gadget_title\' %box_dom_id\n ...@@ -65,7 +65,7 @@ gadget_title_dom_id = \'%s_gadget_title\' %box_dom_id\n
# return some JavaScript which will update respective page\n # return some JavaScript which will update respective page\n
gadget_title = request.get(\'rss_gadget_title\', box.getSpecialiseValue().getTitle())\n gadget_title = request.get(\'rss_gadget_title\', box.getSpecialiseValue().getTitle())\n
gadget_title = unicode(gadget_title).encode(\'utf-8\')[:40]\n gadget_title = unicode(gadget_title).encode(\'utf-8\')[:40]\n
javascript = \'getElement("%s").innerHTML="%s";\' %(gadget_title_dom_id, gadget_title)\n javascript = \'$("#%s").html("%s");\' %(gadget_title_dom_id, gadget_title)\n
\n \n
request.RESPONSE.setHeader("Content-Type", "application/json;; charset=utf-8")\n request.RESPONSE.setHeader("Content-Type", "application/json;; charset=utf-8")\n
result = {"body": html,\n result = {"body": html,\n
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
\n \n
<div class="teaser"\n <div class="teaser"\n
tal:attributes="class python: test(is_read, \'teaser read\', \'teaser unread\');\n tal:attributes="class python: test(is_read, \'teaser read\', \'teaser unread\');\n
onclick string:if(this.className!=\'teaser read\'){this.className=\'teaser read\';;MochiKit.Async.doSimpleXMLHttpRequest(\'Base_setRssItemReadInSelection\', {\'selection_name\':\'${selection_name}\',\'item\':\'${md5}\'})};;toggle(\'${dom_id}\');">\n onclick string:if(this.className!=\'teaser read\'){this.className=\'teaser read\';;$.get(\'Base_setRssItemReadInSelection\', {\'selection_name\':\'${selection_name}\',\'item\':\'${md5}\'})};;$(\'#${dom_id}\').toggle();">\n
<img class="thumbnail-image"\n <img class="thumbnail-image"\n
tal:condition="python: image not in ((), None, [])"\n tal:condition="python: image not in ((), None, [])"\n
tal:attributes="src python: image[0]" alt="Thumbnail"/>\n tal:attributes="src python: image[0]" alt="Thumbnail"/>\n
...@@ -78,8 +78,7 @@ ...@@ -78,8 +78,7 @@
</div>\n </div>\n
</div>\n </div>\n
\n \n
</tal:block>\n </tal:block>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
...@@ -97,7 +96,7 @@ ...@@ -97,7 +96,7 @@
</item> </item>
<item> <item>
<key> <string>output_encoding</string> </key> <key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value> <value> <string>iso-8859-15</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<br/>\n <br/>\n
<br/>\n <br/>\n
<button type="button"\n <button type="button"\n
onclick="MochiKit.Visual.toggle(\'add_new_tab_dialog\');"\n onclick="$(\'#add_new_tab_dialog\').toggle();"\n
i18n:translate="" \n i18n:translate="" \n
i18n:domain="ui">Cancel</button>\n i18n:domain="ui">Cancel</button>\n
<button type="button"\n <button type="button"\n
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<button type="button"\n <button type="button"\n
i18n:translate="" \n i18n:translate="" \n
i18n:domain="ui"\n i18n:domain="ui"\n
onclick="MochiKit.Visual.toggle(\'rename_tab_dialog\');">Cancel</button>\n onclick="$(\'#rename_tab_dialog\').toggle();">Cancel</button>\n
<button type="button"\n <button type="button"\n
i18n:translate="" \n i18n:translate="" \n
i18n:domain="ui"\n i18n:domain="ui"\n
......
...@@ -59,8 +59,7 @@ ...@@ -59,8 +59,7 @@
#\n #\n
# BBB: For the history, erp5_xhtml_appearance.js is included by default when\n # BBB: For the history, erp5_xhtml_appearance.js is included by default when\n
# js_list is not pre-defined before the global definitions.\n # js_list is not pre-defined before the global definitions.\n
\n js_list = (\'MochiKit/MochiKit.js\',\'jquery/core/jquery.js\', \'jquery/ui/js/jquery-ui.js\', \'erp5.js\', \'erp5_knowledge_box.js\',)\n
js_list = (\'MochiKit/MochiKit.js\', \'erp5.js\', \'erp5_knowledge_box.js\',)\n
return js_list\n return js_list\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</item> </item>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts92251979.92</string> </value> <value> <string>ts94401374.54</string> </value>
</item> </item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
......
2011-01-14 Ivan
* Use Jquery
2010-12-13 nicolas.dumazet 2010-12-13 nicolas.dumazet
* Migrate Tools to portal type classes * Migrate Tools to portal type classes
......
erp5_base erp5_base
\ No newline at end of file erp5_jquery
erp5_jquery_ui
\ No newline at end of file
671 674
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment