diff options
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/futon.browse.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index d5fe9afa..a360a343 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -292,6 +292,10 @@ } }, success: function(resp) { + if(!resp.views || !resp.views[localViewName]) { + $.cookies.remove(dbName + ".view"); + location.href = "database.html?" + encodeURIComponent(db.name); + } var viewCode = resp.views[localViewName]; page.viewLanguage = resp.language || "javascript"; $("#language").val(page.viewLanguage); |