workaround for "insert an element into the DOM that has already been inserted"
This commit is contained in:
parent
75b2e1bd6c
commit
0224522aeb
|
@ -72,15 +72,15 @@ Travis.Layout.Home = Travis.Layout.Base.extend
|
|||
@tabsController.set('repository', @repository)
|
||||
@tabsController.set('build', build)
|
||||
@tabsController.set('job', job)
|
||||
@repositoryController.connectOutlet(outletName: 'tabs', name: 'tabs')
|
||||
@homeController.connectOutlet(outletName: 'tabs', name: 'tabs')
|
||||
|
||||
connectBuilds: (builds) ->
|
||||
@repositoryController.connectOutlet(outletName: 'tab', name: 'builds', context: builds)
|
||||
@homeController.connectOutlet(outletName: 'tab', name: 'builds', context: builds)
|
||||
|
||||
connectBuild: (build) ->
|
||||
@repositoryController.connectOutlet(outletName: 'tab', name: 'build', context: build)
|
||||
@homeController.connectOutlet(outletName: 'tab', name: 'build', context: build)
|
||||
|
||||
connectJob: (job) ->
|
||||
@repositoryController.connectOutlet(outletName: 'tab', name: 'job', context: job)
|
||||
@homeController.connectOutlet(outletName: 'tab', name: 'job', context: job)
|
||||
|
||||
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
|
||||
<div id="main">
|
||||
{{outlet main}}
|
||||
|
||||
{{outlet tabs}}
|
||||
|
||||
<div class="tab">
|
||||
{{outlet tab}}
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
{{outlet right}}
|
||||
</div>
|
||||
|
|
|
@ -13,11 +13,5 @@
|
|||
<li><a class="watchers" title="Watches" {{bindAttr href="urlGithubWatchers"}}>{{stats.watchers}}</a></li>
|
||||
<li><a class="forks" title="Forks" {{bindAttr href="urlGithubNetwork"}}>{{stats.forks}}</a></li>
|
||||
</ul>
|
||||
|
||||
{{outlet tabs}}
|
||||
|
||||
<div class="tab">
|
||||
{{outlet tab}}
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user