mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
startsWith() function of java script is not supported in IE, instead use startsWith() function of underscore string. Fixes #2347
This commit is contained in:
committed by
Akshay Joshi
parent
f718e1f49c
commit
928c0d3de8
@@ -3089,8 +3089,10 @@ define(
|
||||
|
||||
$("#btn-flash").prop('disabled', true);
|
||||
|
||||
if (explain_prefix != undefined && !sql.trim().toUpperCase().startsWith("EXPLAIN"))
|
||||
if (explain_prefix != undefined &&
|
||||
!S.startsWith(sql.trim().toUpperCase(), "EXPLAIN")) {
|
||||
sql = explain_prefix + ' ' + sql;
|
||||
}
|
||||
|
||||
self.query_start_time = new Date();
|
||||
self.query = sql;
|
||||
|
||||
Reference in New Issue
Block a user