From cf8155ddd6760f9f9df9f81ef8cff214b563352b Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 11 Jan 2012 05:03:04 +0000 Subject: feature 2550 - replace Sort order label and select on index page with a css sprite icon git-svn-id: http://piwigo.org/svn/trunk@12873 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/index.tpl | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'themes/default/template/index.tpl') diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 815dcbd8e..5af08ba6d 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -4,13 +4,36 @@
+ {footer_script}{literal} +function toggleSortOrderBox() +{ + var elt = document.getElementById("sortOrderBox"), + ePos = document.getElementById("sortOrderLink"); + if (elt.style.display==="none") + { + elt.style.position = "absolute"; + elt.style.left = (ePos.offsetLeft) + "px"; + elt.style.top = (ePos.offsetTop + ePos.offsetHeight) + "px"; + elt.style.display=""; + } + else + elt.style.display="none"; +} + {/literal}{/footer_script} + {/strip} {/if} {if isset($favorite)}
  • -- cgit v1.2.3