From c05dab2b95abc8d81f672db706cdeb50dc7c65c0 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 Content-Type: text/plain; charset="utf-8" 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. --- .../prog/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 7eda584..66f1725 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

    +
    [% 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 %] -- 1.7.9.5