5 import {onSelect} from "../services/dom";
10 this.url = this.$opts.url;
11 this.deleteButtons = this.$manyRefs.delete;
13 onSelect(this.deleteButtons, this.runDelete.bind(this));
17 this.row.style.opacity = '0.7';
18 this.row.style.pointerEvents = 'none';
20 window.$http.delete(this.url).then(resp => {
21 if (typeof resp.data === 'object' && resp.data.message) {
22 window.$events.emit('success', resp.data.message);
26 this.row.style.opacity = null;
27 this.row.style.pointerEvents = null;
32 export default AjaxDeleteRow;