// clear old values
this._values[$type][$objectID] = { };
-
- var self = this;
- this._containerElements.permissionList.find("input[type='checkbox']").each(function(index, checkbox) {
+ this._containerElements.permissionList.find("input[type='checkbox']").each((function(index, checkbox) {
var $checkbox = $(checkbox);
if ($checkbox.attr('id') != 'grantAll_' + this._container.attr('id') && $checkbox.attr('id') != 'denyAll_' + this._container.attr('id')) {
var $optionValue = ($checkbox.data('type') === 'deny') ? 0 : 1;
if ($checkbox.is(':checked')) {
// store value
- self._values[$type][$objectID][$optionID] = $optionValue;
+ this._values[$type][$objectID][$optionID] = $optionValue;
// reset value afterwards
$checkbox.prop('checked', false);
}
- else if (self._values[$type] && self._values[$type][$objectID] && self._values[$type][$objectID][$optionID] && self._values[$type][$objectID][$optionID] == $optionValue) {
- delete self._values[$type][$objectID][$optionID];
+ else if (this._values[$type] && this._values[$type][$objectID] && this._values[$type][$objectID][$optionID] && this._values[$type][$objectID][$optionID] == $optionValue) {
+ delete this._values[$type][$objectID][$optionID];
}
}
- });
+ }).bind(this));
},
/**
var $message = '';
if ($.browser.redactor) {
- $message = this._messageField.redactor('getText');
+ $message = this._messageField.redactor('wutil.getText');
}
else {
$message = $.trim(this._messageField.val());
var $message = '';
if ($.browser.redactor) {
- $message = this._messageField.redactor('getText');
+ $message = this._messageField.redactor('wutil.getText');
}
else {
$message = this._messageField.val();
*/
_success: function(data, textStatus, jqXHR) {
if ($.browser.redactor) {
- this._messageField.redactor('autosavePurge');
+ this._messageField.redactor('wutil.autosavePurge');
}
// redirect to new page
}
if ($.browser.redactor) {
- this._messageField.redactor('reset');
+ this._messageField.redactor('wutil.reset');
}
else {
this._messageField.val('');