X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/resources/themes/lib/utils.rb diff --git a/resources/themes/lib/utils.rb b/resources/themes/lib/utils.rb index ee4205b5..d105d6cc 100644 --- a/resources/themes/lib/utils.rb +++ b/resources/themes/lib/utils.rb @@ -71,6 +71,18 @@ module ExtJS4 Sass::Script::String.new(url) end + + def theme_image_exists(path) + result = false + + where_to_look = path.value.gsub('../../resources', 'resources') + + if where_to_look && FileTest.exists?("#{where_to_look}") + result = true + end + + return Sass::Script::Bool.new(result) + end end end end