|
|
@@ -1641,15 +1641,15 @@ $(document).ready(function () {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- huePubSub.subscribe('assist.dblClickItem', function(assistEntry) {
|
|
|
- var text = assistEntry.editorText();
|
|
|
+ huePubSub.subscribe('assist.dblClickDbItem', function(assistDbEntry) {
|
|
|
+ var text = assistDbEntry.editorText();
|
|
|
if (codeMirror.getValue() == queryPlaceholder) {
|
|
|
codeMirror.setValue("");
|
|
|
- if (assistEntry.definition.isTable) {
|
|
|
- text = "SELECT * FROM " + assistEntry.editorText() + " LIMIT 100";
|
|
|
+ if (assistDbEntry.definition.isTable) {
|
|
|
+ text = "SELECT * FROM " + assistDbEntry.editorText() + " LIMIT 100";
|
|
|
}
|
|
|
- else if (assistEntry.definition.isColumn) {
|
|
|
- text = "SELECT " + assistEntry.editorText().split(",")[0] + " FROM " + assistEntry.parent.editorText() + " LIMIT 100";
|
|
|
+ else if (assistDbEntry.definition.isColumn) {
|
|
|
+ text = "SELECT " + assistDbEntry.editorText().split(",")[0] + " FROM " + assistDbEntry.parent.editorText() + " LIMIT 100";
|
|
|
}
|
|
|
}
|
|
|
codeMirror.replaceSelection(text);
|