mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
16 lines
459 B
JavaScript
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'));
|
||
|
}
|
||
|
}
|