fix resultant javascript error on certain pages

pull/1432/head
Quincy Larson 2015-07-31 13:38:04 -07:00
parent 2547868854
commit a0230609f5
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ $(document).ready(function() {
}
$(document).ready(function() {
if ($('#reset-button').html() != undefined) {
if (typeof editor !== 'undefined') {
$('#reset-button').on('click', resetEditor);
}
});