Mercurial > hg > digilib-old
diff 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 |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.js Wed Oct 24 23:32:43 2012 +0200 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.js Thu Oct 25 17:22:36 2012 +0200 @@ -1606,6 +1606,13 @@ return cropFloat(x).toString(); }; + /** + * returns if str ends with suffix. + */ + var endsWith = function (str, suffix) { + return str.indexOf(suffix, str.length - suffix.length) !== -1; + }; + /** center an item on the visible screen rect */ var centerOnScreen = function (data, $div) { @@ -1690,6 +1697,7 @@ getBorderWidth : getBorderWidth, cropFloat : cropFloat, cropFloatStr : cropFloatStr, + endsWith : endsWith, centerOnScreen : centerOnScreen, withdraw : withdraw, isOnScreen : isOnScreen,