From: Alexander Ebert Date: Thu, 21 Jul 2016 08:18:16 +0000 (+0200) Subject: Fixed profile editing X-Git-Tag: 3.0.0_Beta_1~1021 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17925a7894de8f8bfb82e2a5761dd65c2f23e4f6;p=GitHub%2FWoltLab%2FWCF.git Fixed profile editing --- diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 7dc244e6dd..e97f484cac 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -966,10 +966,10 @@ WCF.User.Profile.Editor = Class.extend({ /** * Begins editing. * - * @param {Event} event event object + * @param {Event?} event event object */ _beginEdit: function(event) { - event.preventDefault(); + if (event) event.preventDefault(); this._actionName = 'beginEdit'; this._buttons.beginEdit.parent().addClass('active'); @@ -1008,7 +1008,7 @@ WCF.User.Profile.Editor = Class.extend({ case 'textarea': if ($element.data('redactor')) { - $value = $element.redactor('wutil.getText'); + $value = $element.redactor('code.get'); } break; }