Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F804085
D209.id584.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 26, 9:05 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Thu, Feb 27, 9:05 AM (4 h, 35 m)
Engine
blob
Format
Raw Data
Handle
576799
Attached To
D209: INP-1545 - Enable SQL syntax highlight in "Tools > Query Database" section
D209.id584.diff
View Options
Index: branches/5.3.x/core/admin_templates/tools/sql_query.tpl
===================================================================
--- branches/5.3.x/core/admin_templates/tools/sql_query.tpl
+++ branches/5.3.x/core/admin_templates/tools/sql_query.tpl
@@ -57,7 +57,7 @@
<inp2:adm_IncludeCodeMirrorFilesByLanguage language="text/x-mysql" render_as="code_mirror_resource"/>
<script type="text/javascript">
- var $editor = CodeMirror.fromTextArea(document.kernel_form.sql, {mode: "mysql", tabindex: <inp2:m_Get name="tab_index"/>, indentWithTabs: true, indentUnit: 4, lineWrapping: true, lineNumbers: true});
+ var $editor = CodeMirror.fromTextArea(document.kernel_form.sql, {mode: "text/x-mysql", tabindex: <inp2:m_Get name="tab_index"/>, indentWithTabs: true, indentUnit: 4, lineWrapping: true, lineNumbers: true});
$editor.setSize(null, 155);
</script>
</td>
@@ -111,4 +111,4 @@
</inp2:m_if>
</inp2:m_if>
-<inp2:m_include t="incs/footer"/>
\ No newline at end of file
+<inp2:m_include t="incs/footer"/>
Event Timeline
Log In to Comment