Commit 599e554a authored by Jacob Schatz's avatar Jacob Schatz

Sidebar works after sidebar ajax calls.

parent d87e317b
...@@ -212,7 +212,7 @@ $ -> ...@@ -212,7 +212,7 @@ $ ->
$this = $(this) $this = $(this)
$this.attr 'value', $this.val() $this.attr 'value', $this.val()
$('.right-sidebar').on 'click', '.gutter-toggle', (e) -> $(document).on 'click', 'aside .gutter-toggle', (e) ->
e.preventDefault() e.preventDefault()
$this = $(this) $this = $(this)
$thisIcon = $this.find 'i' $thisIcon = $this.find 'i'
......
...@@ -10,7 +10,7 @@ class @IssuableContext ...@@ -10,7 +10,7 @@ class @IssuableContext
$(".issuable-sidebar .inline-update").on "change", ".js-assignee", -> $(".issuable-sidebar .inline-update").on "change", ".js-assignee", ->
$(this).submit() $(this).submit()
$(".edit-link").click (e) -> $(document).on "click",".edit-link", (e) ->
block = $(@).parents('.block') block = $(@).parents('.block')
block.find('.selectbox').show() block.find('.selectbox').show()
block.find('.value').hide() block.find('.value').hide()
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
.gutter-toggle { .gutter-toggle {
margin-left: 10px; margin-left: 10px;
border-left: 1px solid #F0F0F0; border-left: 1px solid $border-gray-light;
padding-left: 10px; padding-left: 10px;
} }
} }
...@@ -221,6 +221,7 @@ ...@@ -221,6 +221,7 @@
text-align: center; text-align: center;
margin-left: -19px; margin-left: -19px;
padding-bottom: 10px; padding-bottom: 10px;
color: #999999;
span { span {
display: block; display: block;
......
$('.issuable-sidebar').html("#{escape_javascript(render 'shared/issuable/sidebar', issuable: @issue)}"); $('aside.right-sidebar').parent().html("#{escape_javascript(render 'shared/issuable/sidebar', issuable: @issue)}");
$('.issuable-sidebar').parent().effect('highlight') $('aside.right-sidebar').effect('highlight')
new Issue(); new Issue();
\ No newline at end of file
$('.issuable-sidebar').html("#{escape_javascript(render 'shared/issuable/sidebar', issuable: @merge_request)}"); $('aside.right-sidebar')[0].outerHTML= "#{escape_javascript(render 'shared/issuable/sidebar', issuable: @merge_request)}";
$('.issuable-sidebar').parent().effect('highlight') $('aside.right-sidebar').effect('highlight')
merge_request = new MergeRequest(); merge_request = new MergeRequest();
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
%a.btn.btn-default.disabled{href: '#'} %a.btn.btn-default.disabled{href: '#'}
Next Next
= form_for [@project.namespace.becomes(Namespace), @project, issuable], remote: true, html: {class: 'issuable-context-form inline-update js-issuable-update', 'data-type' => 'json'} do |f| = form_for [@project.namespace.becomes(Namespace), @project, issuable], remote: true, html: {class: 'issuable-context-form inline-update js-issuable-update'} do |f|
.block.assignee .block.assignee
.sidebar-collapsed-icon .sidebar-collapsed-icon
- if issuable.assignee - if issuable.assignee
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment