Mercurial > hg > digilib-old
comparison webapp/src/main/webapp/jquery/jquery.digilib.js @ 1100:c5ed20cd24ae
setting annotation user name works now.
author | robcast |
---|---|
date | Thu, 25 Oct 2012 17:22:36 +0200 |
parents | dbd1cf7cd86a |
children | 365f95a14057 |
comparison
equal
deleted
inserted
replaced
1099:732390b4d81a | 1100:c5ed20cd24ae |
---|---|
1604 */ | 1604 */ |
1605 var cropFloatStr = function (x) { | 1605 var cropFloatStr = function (x) { |
1606 return cropFloat(x).toString(); | 1606 return cropFloat(x).toString(); |
1607 }; | 1607 }; |
1608 | 1608 |
1609 /** | |
1610 * returns if str ends with suffix. | |
1611 */ | |
1612 var endsWith = function (str, suffix) { | |
1613 return str.indexOf(suffix, str.length - suffix.length) !== -1; | |
1614 }; | |
1615 | |
1609 /** center an item on the visible screen rect | 1616 /** center an item on the visible screen rect |
1610 */ | 1617 */ |
1611 var centerOnScreen = function (data, $div) { | 1618 var centerOnScreen = function (data, $div) { |
1612 if ($div == null) return; | 1619 if ($div == null) return; |
1613 var r = geom.rectangle($div); | 1620 var r = geom.rectangle($div); |
1688 isNumber : isNumber, | 1695 isNumber : isNumber, |
1689 getFullscreenRect : getFullscreenRect, | 1696 getFullscreenRect : getFullscreenRect, |
1690 getBorderWidth : getBorderWidth, | 1697 getBorderWidth : getBorderWidth, |
1691 cropFloat : cropFloat, | 1698 cropFloat : cropFloat, |
1692 cropFloatStr : cropFloatStr, | 1699 cropFloatStr : cropFloatStr, |
1700 endsWith : endsWith, | |
1693 centerOnScreen : centerOnScreen, | 1701 centerOnScreen : centerOnScreen, |
1694 withdraw : withdraw, | 1702 withdraw : withdraw, |
1695 isOnScreen : isOnScreen, | 1703 isOnScreen : isOnScreen, |
1696 find : find | 1704 find : find |
1697 }; | 1705 }; |