Grey the SQL panel in edit data mode. Fixes #1423

Introduced a new class 'cm_disabled' with css property background-color to '#EEEEE'
Query tool in edit mode, add the class 'cm_disabled' to set background color to dark and set the cursor property to 'nocursor' to disable editor.
Increased the query tool title padding to fix the issue of whitespace below the title.
This commit is contained in:
Surinder Kumar authored and Dave Page committed 2016-07-05 12:11:36 +01:00
1 parent 3ee8861d44
commit 1bd27b847b
3 files changed
+12 -2

No files matched your search

+5
View File
@@ -1359,3 +1359,8 @@ table.backgrid {
.aciTree.aciTreeLoad {
background: none;
}
/* class to disable Codemirror editor */
.cm_disabled {
background: #EEEEEE;
}
@@ -35,7 +35,7 @@
.editor-title {
background-color: #2C76B4;
padding: 2px;
padding: 4px 5px;
color: white;
font-size: 13px;
}
@@ -1124,7 +1124,12 @@ define(
}
}
else {
self.gridView.query_tool_obj.setOption("readOnly",true);
// Disable codemirror by setting cursor to nocursor and background to dark.
self.gridView.query_tool_obj.setOption("readOnly", 'nocursor');
var cm = self.gridView.query_tool_obj.getWrapperElement();
if (cm) {
cm.className += ' cm_disabled';
}
self.disable_tool_buttons(true);
self._execute_data_query();
}