|
|
@ -1067,13 +1067,14 @@ function VocabItemWidget:onShowBookAssignment(title_changed_cb)
|
|
|
|
return info.name == book
|
|
|
|
return info.name == book
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
hold_callback = function(sort_item, onSuccess)
|
|
|
|
hold_callback = function(sort_item, onSuccess)
|
|
|
|
|
|
|
|
local book_title = self.item.book_title
|
|
|
|
self.show_parent:showChangeBookTitleDialog(sort_item, function()
|
|
|
|
self.show_parent:showChangeBookTitleDialog(sort_item, function()
|
|
|
|
onSuccess()
|
|
|
|
onSuccess()
|
|
|
|
if self.item.book_title == info.name then
|
|
|
|
if book_title == info.name then
|
|
|
|
if book == self.item.book_title then
|
|
|
|
if book == book_title then
|
|
|
|
book = sort_item.text
|
|
|
|
book = sort_item.text
|
|
|
|
end
|
|
|
|
end
|
|
|
|
self.item.book_title = sort_item.text
|
|
|
|
info.name = sort_item.text
|
|
|
|
if title_changed_cb then title_changed_cb(sort_item.text) end
|
|
|
|
if title_changed_cb then title_changed_cb(sort_item.text) end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|