1
0
Fork 0

The SQL-Query on SQL-Browser page can now send with "Ctrl + Return" in textarea.

Dieser Commit ist enthalten in:
D4rk4ng3l 2012-04-23 21:01:26 +00:00
Ursprung 6fe2ff2863
Commit 80bec15c69

Datei anzeigen

@ -1,3 +1,10 @@
<?php $this->jQuery()->onLoadCaptureStart(); ?>
$('#sqltextarea').bind('keyup', function(e){
if (e.which == 13 && e.ctrlKey) {
$('#execsql').trigger('click');
}
});
<?php $this->jQuery()->onLoadCaptureEnd(); ?>
<div id="content">
<h2><?php echo $this->lang->L_SQLBOX;?></h2>
<?php echo $this->sqlHeadNavi(); ?>
@ -12,7 +19,7 @@
</div>
<span style="float:left;">
<?php echo $this->lang->L_TABLE;?>: <select id="selectTable" class="text" onchange="setShowTableQuery();"><?php echo $this->tableSelectBox;?></select>
<input class="Formbutton" type="submit" name="execsql" value="<?php echo $this->lang->L_SQL_EXEC;?>" />
<input class="Formbutton" type="submit" name="execsql" id="execsql" value="<?php echo $this->lang->L_SQL_EXEC;?>" />
<input class="Formbutton" type="button" value="<?php echo $this->lang->L_RESET;?>" onclick="$('#sqltextarea').val('');"/>
</span>
<br class="clear" />