silverstripe-reports/javascript/ImageEditor/Effects.js
Ingo Schommer bd58e931bb mujma: All PHP and JS files for ImageEditor?, works on FF 1.5/2.0.
(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41872 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-09-15 01:08:25 +00:00

18 lines
349 B
JavaScript

/**
* @author Mateusz
*/
var Effects = {
initialize: function() {
this.setListeners = Effects.setListeners.bind(this);
this.rotate = Effects.rotate.bind(this);
this.setListeners();
},
rotate: function() {
imageTransformation.rotate(90);
},
setListeners: function() {
Event.observe('rotateButton','click',this.rotate);
}
}