handleTEXT => handleText

This commit is contained in:
Devin Howard 2017-04-11 08:18:55 -07:00
parent 6975b16c1c
commit 36d4f626e3
2 changed files with 3 additions and 8 deletions

View file

@ -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
)
},

View file

@ -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 => {