silverstripe-cms/javascript/ImageEditor/Adjust.js
Will Rossiter 0ef452c524 FEATURE: merged back patch for image editor. Currently completely broken on trunk this patch does nothing to fix it sadly. I think its a prototype thing
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65351 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-06 02:04:03 +00:00

16 lines
459 B
JavaScript

ImageEditor.Adjust = {
initialize: function() {
this.perform = ImageEditor.Adjust.perform.bind(this);
this.setListener = ImageEditor.Adjust.setListener.bind(this);
this.setListener();
},
setListener: function() {
Element.toggle($('AdjustMenu'));
Event.observe('AdjustButton','click',this.perform);
},
perform: function() {
Element.toggle($('AdjustMenu'));
}
}