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 000000000..72ea7ccb5 Binary files /dev/null and b/webapp/web/js/jquery_plugins/jcrop/Jcrop.gif differ 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