Mercurial > hg > digilib-old
changeset 815:60e8cca7ac81 jquery
could not remove last region
author | hertzhaft |
---|---|
date | Mon, 21 Feb 2011 01:20:22 +0100 |
parents | 40591c00ef41 |
children | e6d0cdaa7923 eff74cfaaf97 |
files | client/digitallibrary/jquery/jquery.digilib.regions.js |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/digitallibrary/jquery/jquery.digilib.regions.js Mon Feb 21 01:08:33 2011 +0100 +++ b/client/digitallibrary/jquery/jquery.digilib.regions.js Mon Feb 21 01:20:22 2011 +0100 @@ -243,7 +243,10 @@ // pack regions array into a parameter string var packRegions = function (data) { var regions = data.regions; - if (!regions.length) return; + if (!regions.length) { + data.settings.rg = null; + return; + } var rg = ''; for (var i = 0; i < regions.length; i++) { region = regions[i];