~ubuntu-branches/ubuntu/saucy/phpmyadmin/saucy-proposed

« back to all changes in this revision

Viewing changes to js/querywindow.js

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-08-04 13:24:37 UTC
  • mfrom: (1.2.44)
  • Revision ID: package-import@ubuntu.com-20130804132437-jznw8efwy4hr1nms
Tags: 4:4.0.5-1
* New upstream release.
  - Fixes security issue PMASA-2013-10.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function PMA_queryAutoCommit(){var a=document.getElementById("sqlqueryform");a.target=window.opener.frame_content.name;a.submit();return}function PMA_querywindowCommit(b){var a=$("#hiddenqueryform");a.find("input[name='querydisplay_tab']").val(b);a.addClass("disableAjax").submit();return false}function PMA_querywindowSetFocus(){$("#sqlquery").focus()}$(function(){$("#topmenucontainer").css("padding",0)});
 
 
b'\\ No newline at end of file'
 
1
/* vim: set expandtab sw=4 ts=4 sts=4: */
 
2
function PMA_queryAutoCommit()
 
3
{
 
4
    var sqlqueryform = document.getElementById('sqlqueryform');
 
5
    sqlqueryform.target = window.opener.frame_content.name;
 
6
    sqlqueryform.submit();
 
7
    return;
 
8
}
 
9
 
 
10
function PMA_querywindowCommit(tab)
 
11
{
 
12
    var $hiddenqueryform = $('#hiddenqueryform');
 
13
    $hiddenqueryform.find("input[name='querydisplay_tab']").val(tab);
 
14
    $hiddenqueryform.addClass('disableAjax').submit();
 
15
    return false;
 
16
}
 
17
 
 
18
function PMA_querywindowSetFocus()
 
19
{
 
20
    $('#sqlquery').focus();
 
21
}
 
22
 
 
23
$(function () {
 
24
    $('#topmenucontainer').css('padding', 0);
 
25
});