From: Chris Nighswonger Date: Tue, 12 Jan 2010 14:31:58 +0000 (-0500) Subject: Enhancement: Some JS to remove dialog after 5 sec X-Git-Tag: v3.02.00-alpha~45^2~13^2~2 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=ba366557553cf8e25e7e4d8d400617a10a404c91;hp=9e53e9c524451cac3507cab8794e4fc88ea091a1;p=koha.git Enhancement: Some JS to remove dialog after 5 sec If JS is disabled, dialog still shows. --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tmpl index 3d6775266a..dd023ea134 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/image-manage.tmpl @@ -35,7 +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; + }