BUG #4791. Zoom search: JavaScript error

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Dan Ungureanu 2015-03-10 07:29:17 +05:30 committed by Madhura Jayaratne
parent 8205498905
commit 102cd3c273
2 changed files with 7 additions and 1 deletions

View File

@ -142,7 +142,12 @@ AJAX.registerOnload('tbl_zoom_plot_jqplot.js', function () {
// Get query result
var searchedData = jQuery.parseJSON($('#querydata').html());
var searchedData;
try {
searchedData = jQuery.parseJSON($('#querydata').html());
} catch (err) {
searchedData = null;
}
/**
** Input form submit on field change

View File

@ -30,6 +30,7 @@ $scripts->addFile('jqplot/plugins/jqplot.cursor.js');
$scripts->addFile('canvg/canvg.js');
$scripts->addFile('jquery/jquery-ui-timepicker-addon.js');
$scripts->addFile('tbl_zoom_plot_jqplot.js');
$scripts->addFile('tbl_change.js');
$table_search = new PMA_TableSearch($db, $table, "zoom");