Mercurial > gui
diff remotePager.ur @ 31:b5432d74841a
Update for key/mouse handler change
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 21 Jul 2012 10:15:14 -0400 |
parents | 2e397d373289 |
children | 2e7f8f7d71d4 |
line wrap: on
line diff
--- a/remotePager.ur Sat May 12 10:07:45 2012 -0400 +++ b/remotePager.ur Sat Jul 21 10:15:14 2012 -0400 @@ -13,15 +13,15 @@ fun defaultFormatLbl {First = fLbl, Back = bLbl, Next = nLbl, Last = lLbl} = let - fun mkLink c txt = fn a => <xml><li onclick={a} class={c}><a class={c} onclick={return ()}>{[txt]}</a></li></xml> + fun mkLink c txt = fn a => <xml><li onclick={fn _ => a} class={c}><a class={c} onclick={fn _ => return ()}>{[txt]}</a></li></xml> in {Width = 5, RangeCtl = {First = mkLink firstCtl fLbl, Back = mkLink backCtl bLbl, Next = mkLink nextCtl nLbl, Last = mkLink lastCtl lLbl}, - PageCtl = {Unsel = fn n a => <xml><li onclick={a}><a onclick={return ()}>{[n + 1]}</a></li></xml>, - Sel = fn n a => <xml><li onclick={a} class={curPage}><a class={curPage} onclick={return ()}>{[n + 1]}</a></li></xml>}, + PageCtl = {Unsel = fn n a => <xml><li onclick={fn _ => a}><a onclick={fn _ => return ()}>{[n + 1]}</a></li></xml>, + Sel = fn n a => <xml><li onclick={fn _ => a} class={curPage}><a class={curPage} onclick={fn _ => return ()}>{[n + 1]}</a></li></xml>}, WrapPageCtl = fn x => x, Wrap = fn {First = f, Back = b, Pages = p, Next = n, Last = l} => <xml><ul class={rangeCtl}>{f}{b}{p}{n}{l}</ul></xml>} end