From fe98da5ae73fc363b6d94b417b893ead8df84a0a Mon Sep 17 00:00:00 2001
From: Patrick Schmitz
Date: Sat, 19 May 2012 17:17:26 +0200
Subject: [PATCH 1/2] fixed loading path for images with asset pipeline in
stylesheet
---
vendor/assets/stylesheets/jquery.fileupload-ui.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vendor/assets/stylesheets/jquery.fileupload-ui.css b/vendor/assets/stylesheets/jquery.fileupload-ui.css
index e36a93d..603c19f 100644
--- a/vendor/assets/stylesheets/jquery.fileupload-ui.css
+++ b/vendor/assets/stylesheets/jquery.fileupload-ui.css
@@ -37,7 +37,7 @@
width: 200px;
}
.progress-animated .bar {
- background: url(../img/progressbar.gif) !important;
+ background: image-url('images/progressbar.gif') !important;
filter: none;
}
.fileupload-loading {
@@ -45,7 +45,7 @@
left: 50%;
width: 128px;
height: 128px;
- background: url(../img/loading.gif) center no-repeat;
+ background: image-url('images/loading.gif') center no-repeat;
display: none;
}
.fileupload-processing .fileupload-loading {
From 3a284da3301a5a061f4fe17378b50874c5f2ff67 Mon Sep 17 00:00:00 2001
From: Patrick Schmitz
Date: Mon, 21 May 2012 19:11:18 +0200
Subject: [PATCH 2/2] fixed image url path
---
...{jquery.fileupload-ui.css => jquery.fileupload-ui.css.erb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename vendor/assets/stylesheets/{jquery.fileupload-ui.css => jquery.fileupload-ui.css.erb} (90%)
diff --git a/vendor/assets/stylesheets/jquery.fileupload-ui.css b/vendor/assets/stylesheets/jquery.fileupload-ui.css.erb
similarity index 90%
rename from vendor/assets/stylesheets/jquery.fileupload-ui.css
rename to vendor/assets/stylesheets/jquery.fileupload-ui.css.erb
index 603c19f..b4daf70 100644
--- a/vendor/assets/stylesheets/jquery.fileupload-ui.css
+++ b/vendor/assets/stylesheets/jquery.fileupload-ui.css.erb
@@ -37,7 +37,7 @@
width: 200px;
}
.progress-animated .bar {
- background: image-url('images/progressbar.gif') !important;
+ background: url(<%= asset_path 'progressbar.gif' %>) !important;
filter: none;
}
.fileupload-loading {
@@ -45,7 +45,7 @@
left: 50%;
width: 128px;
height: 128px;
- background: image-url('images/loading.gif') center no-repeat;
+ background: url(<%= asset_path 'images/loading.gif' %>) center no-repeat;
display: none;
}
.fileupload-processing .fileupload-loading {