Commit 0c9057b2 authored by Boris Kocherov's avatar Boris Kocherov

cleanup and fix issue. thanks @jerome

parent 0cdf00b5
...@@ -898,29 +898,6 @@ ...@@ -898,29 +898,6 @@
.allowPublicAcquisition("expandSchema", function (arr) { .allowPublicAcquisition("expandSchema", function (arr) {
return expandSchemaForField(this, arr[0], arr[1], arr[2]); return expandSchemaForField(this, arr[0], arr[1], arr[2]);
}) })
.onEvent('click', function (evt) {
if (evt.target === this.props.delete_button) {
return this.selfRemove(evt);
}
var link = evt.target.getAttribute("data-error-link"),
button_list = this.props.add_buttons,
i;
if (link) {
location.href = link;
return;
}
for (i = 0; i < button_list.length; i = i + 1) {
if (evt.target === button_list[i].element) {
return button_list[i].event(evt);
}
}
})
.declareJob('listenEvents', function () {
// XXX Disable
return;
})
.onLoop(function () { .onLoop(function () {
var gadget = this; var gadget = this;
if (this.props.changed) { if (this.props.changed) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment