summaryrefslogtreecommitdiff
path: root/share/frontend/impattern/js
diff options
context:
space:
mode:
Diffstat (limited to 'share/frontend/impattern/js')
-rw-r--r--share/frontend/impattern/js/inputs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/frontend/impattern/js/inputs.js b/share/frontend/impattern/js/inputs.js
index 69cd2d3..283bd52 100644
--- a/share/frontend/impattern/js/inputs.js
+++ b/share/frontend/impattern/js/inputs.js
@@ -12,7 +12,7 @@ $('.patterns').click(function(){
'box-shadow': '0px 0px 9px 3px firebrick'
})
- selected_pattern = /url\((.+)\)$/.exec($(this).css("background-image"))[1];
+ selected_pattern = /url\(["']?(.+)["']\)$/.exec($(this).css("background-image"))[1];
preview_controller.from_image(selected_pattern)
$('.patterns').attr("current_pattern", selected_pattern);
});