handleTEXT => handleText
This commit is contained in:
parent
6975b16c1c
commit
36d4f626e3
2 changed files with 3 additions and 8 deletions
|
@ -388,7 +388,7 @@ const Import = {
|
|||
)
|
||||
},
|
||||
|
||||
handleTEXT: function(text, opts = {}) {
|
||||
handleText: function(text, opts = {}) {
|
||||
let coords = opts.coords
|
||||
if (!coords || coords.x === undefined || coords.y === undefined) {
|
||||
coords = AutoLayout.getNextCoord({ mappings: DataModel.Mappings })
|
||||
|
@ -409,12 +409,7 @@ const Import = {
|
|||
url,
|
||||
coords.x,
|
||||
coords.y,
|
||||
importId,
|
||||
{
|
||||
success: function(topic) {
|
||||
return
|
||||
}
|
||||
}
|
||||
importId
|
||||
)
|
||||
},
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ const PasteInput = {
|
|||
let textItems = text.split('\n')
|
||||
if (textItems.length === 1) {
|
||||
if (textItems[0].trim() !== '') {
|
||||
Import.handleTEXT(textItems[0].trim(), coords)
|
||||
Import.handleText(textItems[0].trim(), coords)
|
||||
}
|
||||
} else if (window.confirm('Are you sure you want to create ' + textItems.length + ' new topics?')) {
|
||||
textItems.forEach(item => {
|
||||
|
|
Loading…
Add table
Reference in a new issue