Add content_class for limited width
This commit is contained in:
parent
ee10a1cc51
commit
258ab29435
|
@ -11,7 +11,6 @@
|
|||
function Issue() {
|
||||
this.submitNoteForm = bind(this.submitNoteForm, this);
|
||||
// Prevent duplicate event bindings
|
||||
this.limitContainerWidth();
|
||||
this.disableTaskList();
|
||||
if ($('a.btn-close').length) {
|
||||
this.initTaskList();
|
||||
|
@ -22,11 +21,6 @@
|
|||
this.initCanCreateBranch();
|
||||
}
|
||||
|
||||
Issue.prototype.limitContainerWidth = function() {
|
||||
var $wrapper = $('.content-wrapper .container-fluid');
|
||||
$wrapper.addClass('limit-container-width')
|
||||
};
|
||||
|
||||
Issue.prototype.initTaskList = function() {
|
||||
$('.detail-page-description .js-task-list-container').taskList('enable');
|
||||
return $(document).on('tasklist:changed', '.detail-page-description .js-task-list-container', this.updateTaskList);
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
// Options:
|
||||
// action - String, current controller action
|
||||
//
|
||||
this.limitContainerWidth();
|
||||
this.opts = opts != null ? opts : {};
|
||||
this.submitNoteForm = bind(this.submitNoteForm, this);
|
||||
this.$el = $('.merge-request');
|
||||
|
@ -32,11 +31,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
MergeRequest.prototype.limitContainerWidth = function() {
|
||||
var $wrapper = $('.content-wrapper .container-fluid');
|
||||
$wrapper.addClass('limit-container-width')
|
||||
};
|
||||
|
||||
// Local jQuery finder
|
||||
MergeRequest.prototype.$ = function(selector) {
|
||||
return this.$el.find(selector);
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.issuable-details {
|
||||
section {
|
||||
.issuable-discussion {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
- @content_class = "limit-container-width"
|
||||
- page_title "#{@issue.title} (#{@issue.to_reference})", "Issues"
|
||||
- page_description @issue.description
|
||||
- page_card_attributes @issue.card_attributes
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
- @content_class = "limit-container-width"
|
||||
- page_title "#{@merge_request.title} (#{@merge_request.to_reference})", "Merge Requests"
|
||||
- page_description @merge_request.description
|
||||
- page_card_attributes @merge_request.card_attributes
|
||||
|
|
Loading…
Reference in New Issue