Index: branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/ajax.js =================================================================== diff -u -r7283 -r7505 --- branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/ajax.js (.../ajax.js) (revision 7283) +++ branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/ajax.js (.../ajax.js) (revision 7505) @@ -284,8 +284,8 @@ } AjaxPopupManager.prototype.GetSize = function ($template) { - if (typeof this.ResponceFunction != 'function') { - alert ('Please define responce function first'); + if (this.ResponceFunction == null) { + alert ('Please define responce function first (type: '+typeof(this.ResponceFunction)+')'); } if (!isset(this.PopupSizes[$template])) { Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js =================================================================== diff -u -r7502 -r7505 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js (.../script.js) (revision 7502) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/js/script.js (.../script.js) (revision 7505) @@ -774,7 +774,7 @@ if ($escaped) { return $string.replace(/<a href="(.*?)">(.*?)<\/a>/g, '$2'); } - + return $string.replace(/(.*?)<\/a>/g, '$2'); }