bug/bug.xhtml | 2 +- bug/bug/bug.css | 2 +- bug/bug/bug.js | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-)
New commits: commit e1493d495004d12fc35d23d52ee99f23f53937d3 Author: Loic Dachary <l...@dachary.org> Date: Wed Sep 21 15:18:37 2011 +0200 when the component icon is selected, simulate a click in the corresponding menu entry. fix a few spelling errors in the component names diff --git a/bug/bug.xhtml b/bug/bug.xhtml index 4eb0c99..e621698 100644 --- a/bug/bug.xhtml +++ b/bug/bug.xhtml @@ -103,7 +103,7 @@ </div> <div> <div class="components_icons"> - <div><img src="icons/Libreoffice.png" title="BASIC" data="BASIC" alt="BASIC" /><img src="icons/Chart.png" title="Chart" data="Chart" alt="Chart" /><img src="icons/Libreoffice.png" title="Contrib" data="Contrib" alt="Contrib" /><img src="icons/Database.png" title="Database" data="Database" alt="Database" /><img src="icons/Documentation.png" title="Documentation" data="Documentation" alt="Documentation" /><img src="icons/Drawing.png" title="Drawing" data="Drawing" alt="Drawing" /></div><div><img src="icons/Extensions.png" title="Extensions" data="Extensions" alt="Extensions" /><img src="icons/Formula_editor.png" title="Formula" data="Formula_editor" alt="Formula" /><img src="icons/Installation.png" title="Installation" data="Installation" alt="Installation" /><img src="icons/Libreoffice.png" title="Libreoffice" data="Libreoffice" alt="Libreoffice" /><img src="icons/Libreoffice.png" title="Linguistic" data="Linguistic" alt="Linguistic" /><img src="icons/Libreo ffice.png" title="Localization" data="Localization" alt="Localization" /></div><div><img src="icons/PDF_export.png" title="PDF" data="PDF_Export" alt="PDF" /><img src="icons/Presentation.png" title="Presentation" data="Presentation" alt="Presentation" /><img src="icons/Spreadsheet.png" title="Spreadsheet" data="Spreadsheet" alt="Spreadsheet" /><img src="icons/Libreoffice.png" title="UI" data="UI" alt="UI" /><img src="icons/WRITER.png" title="WRITER" data="WRITER" alt="WRITER" /><img src="icons/WWW.png" title="WWW" data="WWW" alt="WWW" /></div> + <div><img src="icons/Libreoffice.png" title="BASIC" data="BASIC" alt="BASIC" /><img src="icons/Chart.png" title="Chart" data="Chart" alt="Chart" /><img src="icons/Libreoffice.png" title="Contrib" data="contrib" alt="Contrib" /><img src="icons/Database.png" title="Database" data="Database" alt="Database" /><img src="icons/Documentation.png" title="Documentation" data="Documentation" alt="Documentation" /><img src="icons/Drawing.png" title="Drawing" data="Drawing" alt="Drawing" /></div><div><img src="icons/Extensions.png" title="Extensions" data="Extensions" alt="Extensions" /><img src="icons/Formula_editor.png" title="Formula" data="Formula_editor" alt="Formula" /><img src="icons/Installation.png" title="Installation" data="Installation" alt="Installation" /><img src="icons/Libreoffice.png" title="Libreoffice" data="Libreoffice" alt="Libreoffice" /><img src="icons/Libreoffice.png" title="Linguistic" data="Linguistic_component" alt="Linguistic" /><img src="ic ons/Libreoffice.png" title="Localization" data="Localization" alt="Localization" /></div><div><img src="icons/PDF_export.png" title="PDF export" data="PDF_export" alt="PDF export" /><img src="icons/Presentation.png" title="Presentation" data="Presentation" alt="Presentation" /><img src="icons/Spreadsheet.png" title="Spreadsheet" data="Spreadsheet" alt="Spreadsheet" /><img src="icons/Libreoffice.png" title="UI" data="UI" alt="UI" /><img src="icons/WRITER.png" title="WRITER" data="WRITER" alt="WRITER" /><img src="icons/WWW.png" title="WWW" data="WWW" alt="WWW" /></div> </div> <div>&component_comments;</div> </div> diff --git a/bug/bug/bug.css b/bug/bug/bug.css index 77e1077..08571fa 100644 --- a/bug/bug/bug.css +++ b/bug/bug/bug.css @@ -1,5 +1,5 @@ /* javascript and old browsers fallback */ -.javascript, .unsupported { +.javascript, .unsupported, .compatibility .version { display: none; } diff --git a/bug/bug/bug.js b/bug/bug/bug.js index c8dca53..e01a8ea 100644 --- a/bug/bug/bug.js +++ b/bug/bug/bug.js @@ -102,13 +102,16 @@ $.bug.current_step('component'); element.show(); $('.select', element).select(); - $('.select .choice, img', element).click(function() { - var component = $(this).attr('data'); - $('.select .chosen', element).attr('data', component); + $('.select .choice', element).click(function() { + var component = $(this).attr('data'); $('.comment', element).hide(); $('.comment.' + component, element).show(); $.bug.state_subcomponent(); }); + $('img', element).click(function() { + var component = $(this).attr('data'); + $(".select .choice[data='" + component + "']", element).click(); + }); }, state_subcomponent: function() { _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits