| Conditions | 1 |
| Paths | 1 |
| Total Lines | 39 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 31 | initialize: function() { |
||
| 32 | var $overlayContainer = $('<div/>'); |
||
| 33 | var $componentContainer = $('<div/>'); |
||
| 34 | this.$el.append($overlayContainer); |
||
| 35 | |||
| 36 | // start overlay |
||
| 37 | this.sandbox.start([{ |
||
| 38 | name: 'overlay@husky', |
||
| 39 | options: { |
||
| 40 | el: $overlayContainer, |
||
| 41 | instanceName: 'contact-selection', |
||
| 42 | openOnStart: true, |
||
| 43 | removeOnClose: true, |
||
| 44 | skin: 'medium', |
||
| 45 | slides: [ |
||
| 46 | { |
||
| 47 | title: this.translations.title, |
||
| 48 | data: $componentContainer, |
||
| 49 | okCallback: this.okCallbackOverlay.bind(this) |
||
| 50 | } |
||
| 51 | ] |
||
| 52 | } |
||
| 53 | }]); |
||
| 54 | |||
| 55 | // start search and datagrid |
||
| 56 | this.sandbox.once('husky.overlay.contact-selection.opened', function() { |
||
| 57 | this.sandbox.start([{ |
||
| 58 | name: 'articles/list/contact-selection/form@suluarticle', |
||
| 59 | options: { |
||
| 60 | el: $componentContainer, |
||
| 61 | data: this.options.data, |
||
| 62 | selectCallback: function(data) { |
||
| 63 | this.options.selectCallback(data); |
||
| 64 | this.sandbox.stop(); |
||
| 65 | }.bind(this) |
||
| 66 | } |
||
| 67 | }]); |
||
| 68 | }.bind(this)); |
||
| 69 | }, |
||
| 70 | |||
| 79 |