git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git]
/
resources
/
themes
/
lib
/
utils.rb
diff --git
a/resources/themes/lib/utils.rb
b/resources/themes/lib/utils.rb
index
ee4205b
..
d105d6c
100644
(file)
--- a/
resources/themes/lib/utils.rb
+++ b/
resources/themes/lib/utils.rb
@@
-71,6
+71,18
@@
module ExtJS4
Sass::Script::String.new(url)
end
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
end
end
end