BUG #4791. Zoom search: JavaScript error
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
8205498905
commit
102cd3c273
@ -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
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user