Re-fix database name unescaping the query tool title bar.

This commit is contained in:
Aditya Toshniwal 2019-09-02 16:57:28 +01:00 committed by Dave Page
parent 60a6c501fb
commit a68f0702e2

View File

@ -227,7 +227,7 @@ define('pgadmin.datagrid', [
queryToolForm +=`
</form>
<script>
document.getElementById("title").value = "${_.escape(panel_title)}";
document.getElementById("title").value = "${panel_title}";
document.getElementById("queryToolForm").submit();
</script>
`;
@ -244,7 +244,7 @@ define('pgadmin.datagrid', [
var queryToolPanel = pgBrowser.docker.addPanel('frm_datagrid', wcDocker.DOCK.STACKED, propertiesPanel[0]);
// Set panel title and icon
panelTitleFunc.setQueryToolDockerTitle(queryToolPanel, is_query_tool, panel_title);
panelTitleFunc.setQueryToolDockerTitle(queryToolPanel, is_query_tool, _.unescape(panel_title));
queryToolPanel.focus();
// Listen on the panel closed event.