From 48eb0278988cf2cd2c805cd8cca301e2361f08d7 Mon Sep 17 00:00:00 2001 From: mb863 Date: Thu, 8 Jul 2010 19:14:19 +0000 Subject: [PATCH] moved jcrop files to the jquery_plugins folder --- webapp/web/js/jquery_plugins/jcrop/Jcrop.gif | Bin 0 -> 329 bytes .../js/jquery_plugins/jcrop/jquery.Jcrop.css | 40 ++++++++++++++++++ .../imageUpload/imageUpload-cropImage.ftl | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 webapp/web/js/jquery_plugins/jcrop/Jcrop.gif create mode 100644 webapp/web/js/jquery_plugins/jcrop/jquery.Jcrop.css diff --git a/webapp/web/js/jquery_plugins/jcrop/Jcrop.gif b/webapp/web/js/jquery_plugins/jcrop/Jcrop.gif new file mode 100644 index 0000000000000000000000000000000000000000..72ea7ccb5321d5384d70437cfaac73011237901e GIT binary patch literal 329 zcmZ?wbhEHb9b#5NV>2k zBC~b@b~P=nNfWAe-b%_i6tS^-1y(h@EsB~1TqDA_h@fkxG$bHgvj}VxE1JLgr!*!^ ILUxTc0Q$^Q5C8xG literal 0 HcmV?d00001 diff --git a/webapp/web/js/jquery_plugins/jcrop/jquery.Jcrop.css b/webapp/web/js/jquery_plugins/jcrop/jquery.Jcrop.css new file mode 100644 index 000000000..2c5934e25 --- /dev/null +++ b/webapp/web/js/jquery_plugins/jcrop/jquery.Jcrop.css @@ -0,0 +1,40 @@ +/* Fixes issue here http://code.google.com/p/jcrop/issues/detail?id=1 */ +.jcrop-holder { text-align: left; } + +.jcrop-vline, .jcrop-hline +{ + font-size: 0; + position: absolute; + background: white url('Jcrop.gif') top left repeat; +} +.jcrop-vline { height: 100%; width: 1px !important; } +.jcrop-hline { width: 100%; height: 1px !important; } +.jcrop-handle { + font-size: 1px; + width: 7px !important; + height: 7px !important; + border: 1px #eee solid; + background-color: #333; + *width: 9px; + *height: 9px; +} + +.jcrop-tracker { width: 100%; height: 100%; } + +.custom .jcrop-vline, +.custom .jcrop-hline +{ + background: yellow; +} +.custom .jcrop-handle +{ + border-color: black; + background-color: #C7BB00; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + + + + + diff --git a/webapp/web/templates/freemarker/body/imageUpload/imageUpload-cropImage.ftl b/webapp/web/templates/freemarker/body/imageUpload/imageUpload-cropImage.ftl index 7356e2c60..0dd6cc75a 100644 --- a/webapp/web/templates/freemarker/body/imageUpload/imageUpload-cropImage.ftl +++ b/webapp/web/templates/freemarker/body/imageUpload/imageUpload-cropImage.ftl @@ -8,7 +8,7 @@ ${scripts.add("/js/imageUpload/cropImage.js")} ${stylesheets.addFromTheme("/uploadImages.css")} -${stylesheets.addFromTheme("/jquery.Jcrop.css")} +${stylesheets.add("/js/jquery_plugins/jcrop/jquery.Jcrop.css")} <#--Reduce original image to fit in the page layout