From ff7670bf52d5986a2f5b330b629a4474f17e8969 Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Mon, 12 Apr 2010 12:36:58 +0000 Subject: [PATCH] Use ID CSS selector for "Add gadgets" link. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34464 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_knowledge_pad/Base_viewGadgetListDialog.xml | 2 +- .../Base_viewKnowledgePadMacroLibrary.xml | 7 ++++--- bt5/erp5_knowledge_pad/bt/revision | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_viewGadgetListDialog.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_viewGadgetListDialog.xml index dd6bcd046b..c810a04138 100644 --- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_viewGadgetListDialog.xml +++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_viewGadgetListDialog.xml @@ -78,8 +78,8 @@ <key> <string>bottom</string> </key> <value> <list> - <string>listbox</string> <string>your_active_pad_relative_url</string> + <string>listbox</string> </list> </value> </item> diff --git a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_viewKnowledgePadMacroLibrary.xml b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_viewKnowledgePadMacroLibrary.xml index effbe81980..bd5e898a76 100644 --- a/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_viewKnowledgePadMacroLibrary.xml +++ b/bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/Base_viewKnowledgePadMacroLibrary.xml @@ -65,15 +65,16 @@ </tal:block> \n \n <tal:block metal:define-macro="add_new_gadget">\n - <a href="GadgetTool_viewPrettyGadgetList"\n + <a href="Base_viewGadgetListDialog"\n tal:condition="not: isKnowledgePadTemplateUsed"\n tal:attributes="href python:\n \'Base_viewGadgetListDialog?reset=1&cancel_url=%s&active_pad_relative_url=%s&mode=%s\'\n %(cancel_url, \n active_knowledge_pad.getRelativeUrl(), mode);"\n - title="Click to add portlets"\n + title="Add gadgets"\n i18n:translate="" \n - i18n:domain="ui"> Add gadgets</a>\n + i18n:domain="ui"\n + id="add-gadgets"> Add gadgets</a>\n </tal:block>\n \n <tal:block metal:define-macro="stick">\n diff --git a/bt5/erp5_knowledge_pad/bt/revision b/bt5/erp5_knowledge_pad/bt/revision index fc42ce4bd1..84ccffd556 100644 --- a/bt5/erp5_knowledge_pad/bt/revision +++ b/bt5/erp5_knowledge_pad/bt/revision @@ -1 +1 @@ -504 \ No newline at end of file +505 \ No newline at end of file -- 2.30.9