Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/owners/OwnersPathEditor.js
| Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | addPath : function(path_ref) { | ||||
| 'td', | 'td', | ||||
| JX.$H(this._inputTemplate)); | JX.$H(this._inputTemplate)); | ||||
| // Text input for path. | // Text input for path. | ||||
| var path_input = JX.DOM.find(typeahead_cell, 'input'); | var path_input = JX.DOM.find(typeahead_cell, 'input'); | ||||
| JX.copy( | JX.copy( | ||||
| path_input, | path_input, | ||||
| { | { | ||||
| value : path_ref.path || '', | value : path_ref.display || '', | ||||
| name : 'path[' + this._count + ']' | name : 'path[' + this._count + ']' | ||||
| }); | }); | ||||
| // The Typeahead requires a display div called hardpoint. | // The Typeahead requires a display div called hardpoint. | ||||
| var hardpoint = JX.DOM.find( | var hardpoint = JX.DOM.find( | ||||
| typeahead_cell, | typeahead_cell, | ||||
| 'div', | 'div', | ||||
| 'typeahead-hardpoint'); | 'typeahead-hardpoint'); | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||