Fix an issue in query tool where it was not able to handle special characters in editor title.
Fixes #1381pull/3/head
parent
a563e17f9b
commit
a1f65e981f
|
@ -134,7 +134,7 @@ def initialize_datagrid(cmd_type, obj_type, sid, did, obj_id):
|
|||
return make_json_response(data={'gridTransId': trans_id})
|
||||
|
||||
|
||||
@blueprint.route('/panel/<int:trans_id>/<is_query_tool>/<editor_title>', methods=["GET"])
|
||||
@blueprint.route('/panel/<int:trans_id>/<is_query_tool>/<path:editor_title>', methods=["GET"])
|
||||
def panel(trans_id, is_query_tool, editor_title):
|
||||
"""
|
||||
This method calls index.html to render the data grid.
|
||||
|
|
|
@ -323,7 +323,8 @@ define(
|
|||
});
|
||||
|
||||
// Open the panel if frame is initialized
|
||||
baseUrl = "{{ url_for('datagrid.index') }}" + "panel/" + res.data.gridTransId + "/false/" + grid_title;
|
||||
baseUrl = "{{ url_for('datagrid.index') }}" + "panel/" + res.data.gridTransId + "/false/"
|
||||
+ encodeURIComponent(grid_title);
|
||||
var openDataGridURL = function(j) {
|
||||
setTimeout(function() {
|
||||
var frameInitialized = j.data('frameInitialized');
|
||||
|
@ -419,7 +420,7 @@ define(
|
|||
|
||||
// Open the panel if frame is initialized
|
||||
baseUrl = "{{ url_for('datagrid.index') }}" + "panel/" + res.data.gridTransId + "/true/"
|
||||
+ grid_title + '?' + "query_url=" + encodeURI(sURL);
|
||||
+ encodeURIComponent(grid_title) + '?' + "query_url=" + encodeURI(sURL);
|
||||
var openQueryToolURL = function(j) {
|
||||
setTimeout(function() {
|
||||
var frameInitialized = j.data('frameInitialized');
|
||||
|
|
Loading…
Reference in New Issue