skip firing onchange event with invalid page ('{{url}}')
authora. bellenir <ab@grpl.org>
Sat, 19 May 2018 19:02:48 +0000 (15:02 -0400)
committera. bellenir <ab@grpl.org>
Sat, 19 May 2018 19:02:48 +0000 (15:02 -0400)
commite8fc3711a52ee79860372095d693a0e953230544
treee3d5b317fe8a1737afd71439558a4976c2fb1564
parentae11a1c1f4f3d653bfe6604e9552d07eca5fd822
skip firing onchange event with invalid page ('{{url}}')

something sets the iframe url to '$BASE_URL/{{url}}' (encoded as '%7B%7Burl%7D%7D') when the page is reloaded or the URL is accessed directly.
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js cannot extract the record id from this value, so a blank page is ultimately loaded.
superfluous reloads can be avoided by skipping the $scope.onchange event when the new url is invalid (ends with '{{url}}').

Signed-off-by: a. bellenir <ab@grpl.org>
Open-ILS/web/js/ui/default/staff/services/eframe.js