fix resultant javascript error on certain pages
This commit is contained in:
@ -5,7 +5,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if ($('#reset-button').html() != undefined) {
|
if (typeof editor !== 'undefined') {
|
||||||
$('#reset-button').on('click', resetEditor);
|
$('#reset-button').on('click', resetEditor);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user