mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
Remove more admin options code since it's gone from composer
This commit is contained in:
parent
71ba674167
commit
0f98c1644a
|
@ -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'),
|
||||
|
|
|
@ -544,11 +544,6 @@ div.ac-wrap {
|
|||
}
|
||||
}
|
||||
|
||||
.admin-options-form {
|
||||
display: none;
|
||||
margin-top: -15px;
|
||||
}
|
||||
|
||||
.auto-close-fields {
|
||||
input {
|
||||
width: 150px;
|
||||
|
|
|
@ -456,11 +456,6 @@ div.ac-wrap {
|
|||
}
|
||||
}
|
||||
|
||||
.admin-options-form {
|
||||
margin-top: 8px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.auto-close-fields {
|
||||
input {
|
||||
width: 50px;
|
||||
|
|
Loading…
Reference in New Issue
Block a user