Skip to content

Commit

Permalink
Restore SQL query after session expire
Browse files Browse the repository at this point in the history
Partially Fixes: phpmyadmin/phpmyadmin#13654

Signed-off-by: Saksham Gupta <shucon01@gmail.com>
  • Loading branch information
shucon committed Feb 28, 2018
1 parent 733a3f1 commit e5ff7f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/sql.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,11 @@ AJAX.registerOnload('sql.js', function () {
* create resizable table
*/
$('.sqlqueryresults').trigger('makegrid').trigger('stickycolumns');

/**
* Restores SQL query after timeout login
*/
codemirror_editor.setValue(window.localStorage.auto_saved_sql);
});

/*
Expand Down

0 comments on commit e5ff7f3

Please sign in to comment.