diff --git a/javascript/AssetAdmin.js b/javascript/AssetAdmin.js index cc15812f..8d6fd580 100755 --- a/javascript/AssetAdmin.js +++ b/javascript/AssetAdmin.js @@ -102,8 +102,10 @@ CheckBoxRange.prototype = { this.form = form; this.field = field; this.eventPossibleCheckHappened = this.possibleCheckHappened.bindAsEventListener(this); - Event.observe(form, "click", this.eventPossibleCheckHappened); - Event.observe(form, "keyup", this.eventPossibleCheckHappened); + if(form) { + Event.observe(form, "click", this.eventPossibleCheckHappened); + Event.observe(form, "keyup", this.eventPossibleCheckHappened); + } }, possibleCheckHappened: function(event) {