fix resultant javascript error on certain pages

This commit is contained in:
Quincy Larson
2015-07-31 13:38:04 -07:00
parent 2547868854
commit a0230609f5

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);
}
});