# HG changeset patch # User hertzhaft # Date 1298247622 -3600 # Node ID 60e8cca7ac8125ec431f9b05a829c74aa2ca5ef6 # Parent 40591c00ef41fc777665ee60cf89ce4d217e0d71 could not remove last region diff -r 40591c00ef41 -r 60e8cca7ac81 client/digitallibrary/jquery/jquery.digilib.regions.js --- 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];