Some cleanup
authorAlexander Ebert <ebert@woltlab.com>
Sun, 27 Jul 2014 14:56:56 +0000 (16:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 27 Jul 2014 14:56:56 +0000 (16:56 +0200)
wcfsetup/install/files/js/WCF.Attachment.js

index 2acaf7158e1122f1af29f93ce2da4b6afdac4a12..fb41f4035e5a5645f20d691a94c95d5bdd0682f4 100644 (file)
@@ -95,8 +95,7 @@ WCF.Attachment.Upload = WCF.Upload.extend({
                var $uploadID;
                
                // show tab
-               var $tabMenuContainer = this._fileListSelector.closest('.messageTabMenu')
-               $tabMenuContainer.messageTabMenu('showTab', 'attachments', true);
+               this._fileListSelector.closest('.messageTabMenu').messageTabMenu('showTab', 'attachments', true);
                
                if (data.file) {
                        $uploadID = this._upload(undefined, data.file);