Fix SQL Help on older browsers without string.endsWith().

This commit is contained in:
Khushboo Vashi 2016-04-15 14:26:32 +01:00 committed by Dave Page
parent 7ca939dcaf
commit de0864a92c

View File

@ -731,7 +731,7 @@ function($, _, S, pgAdmin, Menu, Backbone, Alertify, pgBrowser, Backform) {
minor = Math.floor(server.version / 100) - (major * 100)
url = url.replace('$VERSION$', major + '.' + minor)
if (!url.endsWith('/')) {
if (!S(url).endsWith('/')) {
url = url + '/'
}
if (that.sqlCreateHelp == '' && that.sqlAlterHelp != '') {