Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/maniphest/behavior-batch-editor.js
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | JX.behavior('maniphest-batch-editor', function(config) { | ||||
manager.listen( | manager.listen( | ||||
'row-removed', | 'row-removed', | ||||
function(row_id) { | function(row_id) { | ||||
delete action_rows[row_id]; | delete action_rows[row_id]; | ||||
}); | }); | ||||
function build_tokenizer(tconfig) { | function build_tokenizer(tconfig) { | ||||
var template = JX.$N('div', JX.$H(config.tokenizerTemplate)).firstChild; | var built = JX.Prefab.newTokenizerFromTemplate( | ||||
template.id = ''; | config.tokenizerTemplate, | ||||
JX.copy({}, tconfig)); | |||||
var build_config = JX.copy({}, tconfig); | |||||
build_config.root = template; | |||||
var built = JX.Prefab.buildTokenizer(build_config); | |||||
built.tokenizer.start(); | built.tokenizer.start(); | ||||
return { | return { | ||||
object: built.tokenizer, | object: built.tokenizer, | ||||
template: template | template: built.node | ||||
}; | }; | ||||
} | } | ||||
}); | }); |