From 4334cd195af90255c0d59695310049e2e6a04898 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Feb 2013 08:59:43 -0500 Subject: [PATCH] Bug 9693 - Remove YUI styling from buttons on the patron card creator's image manage page Buttons on the patron card creator's image manage page are styled using YUI. They can be classified as submit buttons rather than toolbar buttons, so they should have default submit button styles. This patch removes YUI styling and related JavaScript. Other minor changes: Markup corrections for validity. To test, view the patron card creator's image manage page. "Upload" and "Delete" buttons should look correct and work correctly. Upload and delete operations should function normally. Signed-off-by: Bernardo Gonzalez Kriegel Comment: Work as described. No errors. Questions answered in comments. Signed-off-by: Katrin Fischer Works nicely and is more consistent. Signed-off-by: Jared Camins-Esakov --- .../en/modules/patroncards/image-manage.tt | 74 ++++--------------- 1 file changed, 14 insertions(+), 60 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt index 7eda58472c..66f1725e73 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tt @@ -35,58 +35,12 @@ alert(_("Please select image(s) to ") + op + "."); return (-1); }; - function showHideLayers(element, time, action) { - setTimeout("changeVisibility('" + element + "','" + action + "')", time) - } - function changeVisibility(element, action) { - document.getElementById(element).style.display=action; - } - - @@ -108,9 +62,9 @@

Upload Images

[% IF ( IMPORT_SUCCESSFUL ) %]
-
  • Image successfully uploaded.

  • -
  • File: [% SOURCE_FILE %]
  • -
  • Image name: [% IMAGE_NAME %]
  • +

    Image successfully uploaded

    +
    • File: [% SOURCE_FILE %]
    • +
    • Image name: [% IMAGE_NAME %]
    [% END %]
    @@ -118,6 +72,7 @@
    NOTE: Only PNG, GIF, JPEG, XPM formats are supported. Images must be less than 500KB.
    +
    1. @@ -130,11 +85,12 @@
    2. +
    - - Cancel + + Cancel
    @@ -142,7 +98,7 @@

    Delete Images

    [% IF ( DELETE_SUCCESSFULL ) %]
    -
  • Image(s) successfully deleted.

  • +

    Image(s) successfully deleted

    [% END %] [% IF ( TABLE ) %] @@ -151,7 +107,6 @@
    Select one or more images to delete.
    -
  • [% FOREACH TABL IN TABLE %] [% IF ( TABL.header_fields ) %] @@ -175,12 +130,11 @@ [% END %] [% END %]
    -
  • - - Cancel + + Cancel
    [% ELSE %] -- 2.39.5