Only show the filename in query tool tabs, not the whole path.

pull/3/head
Dave Page 2016-12-09 12:42:30 +00:00
parent b8d03d5dc2
commit 4a280b2517
1 changed files with 1 additions and 1 deletions

View File

@ -2428,7 +2428,7 @@ define(
if (res.data.status) {
self.gridView.query_tool_obj.setValue(res.data.result);
self.gridView.current_file = e;
self.setTitle(self.gridView.current_file.replace(/^\/|\/$/g, ''));
self.setTitle(self.gridView.current_file.split('\\').pop().split('/').pop());
}
self.trigger('pgadmin-sqleditor:loading-icon:hide');
// hide cursor