From 0f98c1644a464b2e014952829c9d2d6e2b8a1120 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 26 Mar 2014 10:19:01 -0400 Subject: [PATCH] Remove more admin options code since it's gone from composer --- .../discourse/views/composer/composer_view.js | 13 ------------- app/assets/stylesheets/desktop/compose.scss | 5 ----- app/assets/stylesheets/mobile/compose.scss | 5 ----- 3 files changed, 23 deletions(-) diff --git a/app/assets/javascripts/discourse/views/composer/composer_view.js b/app/assets/javascripts/discourse/views/composer/composer_view.js index 01eb1cd38a3..dba579137ce 100644 --- a/app/assets/javascripts/discourse/views/composer/composer_view.js +++ b/app/assets/javascripts/discourse/views/composer/composer_view.js @@ -449,19 +449,6 @@ Discourse.ComposerView = Discourse.View.extend(Ember.Evented, { this._unbindUploadTarget(); }, - toggleAdminOptions: function() { - var $adminOpts = $('.admin-options-form'), - $wmd = $('.wmd-controls'), - wmdTop = parseInt($wmd.css('top'),10); - if( $adminOpts.is(':visible') ) { - $wmd.css('top', wmdTop - parseInt($adminOpts.css('height'),10) + 'px' ); - $adminOpts.hide(); - } else { - $adminOpts.show(); - $wmd.css('top', wmdTop + parseInt($adminOpts.css('height'),10) + 'px' ); - } - }, - titleValidation: function() { var titleLength = this.get('model.titleLength'), missingChars = this.get('model.missingTitleCharacters'), diff --git a/app/assets/stylesheets/desktop/compose.scss b/app/assets/stylesheets/desktop/compose.scss index 9fa9f249cfa..06a6c2c3ad7 100644 --- a/app/assets/stylesheets/desktop/compose.scss +++ b/app/assets/stylesheets/desktop/compose.scss @@ -544,11 +544,6 @@ div.ac-wrap { } } -.admin-options-form { - display: none; - margin-top: -15px; -} - .auto-close-fields { input { width: 150px; diff --git a/app/assets/stylesheets/mobile/compose.scss b/app/assets/stylesheets/mobile/compose.scss index 3521dbf3038..d0ae68999a2 100644 --- a/app/assets/stylesheets/mobile/compose.scss +++ b/app/assets/stylesheets/mobile/compose.scss @@ -456,11 +456,6 @@ div.ac-wrap { } } -.admin-options-form { - margin-top: 8px; - display: none; -} - .auto-close-fields { input { width: 50px;