From 55cf221b566f38c246988a76dce1762d7acd54f7 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Tue, 10 Feb 2015 09:43:17 +0100 Subject: [PATCH] Fix status images --- app/templates/status-images.hbs | 2 +- app/utils/status-image-formats.coffee | 2 +- app/views/repo.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/status-images.hbs b/app/templates/status-images.hbs index d88a105c..4c30aacd 100644 --- a/app/templates/status-images.hbs +++ b/app/templates/status-images.hbs @@ -10,5 +10,5 @@

- {{view 'status-image' valueBinding="view.statusString" class="url" rows=3}} + {{view 'status-image-input' valueBinding="view.statusString" class="url" rows=3}}

diff --git a/app/utils/status-image-formats.coffee b/app/utils/status-image-formats.coffee index 58952dc1..a2faa313 100644 --- a/app/utils/status-image-formats.coffee +++ b/app/utils/status-image-formats.coffee @@ -36,7 +36,7 @@ format = (version, slug, branch) -> url = urlRepo(slug) switch version - when 'Image URL' then statusImageUrl(url, slug, branch) + when 'Image URL' then statusImageUrl(slug, branch) when 'Markdown' then markdownStatusImage(url, slug, branch) when 'Textile' then textileStatusImage(url, slug, branch) when 'Rdoc' then rdocStatusImage(url, slug, branch) diff --git a/app/views/repo.coffee b/app/views/repo.coffee index 895ac7f9..64089307 100644 --- a/app/views/repo.coffee +++ b/app/views/repo.coffee @@ -23,7 +23,7 @@ View = BasicView.extend actions: statusImages: () -> @popupCloseAll() - view = StatusImagesView.create(toolsView: this) + view = StatusImagesView.create(toolsView: this, container: @container) BasicView.currentPopupView = view view.appendTo($('body')) return false