Remove E4X in tag-fixing sync code
This commit is contained in:
parent
596c6da3ee
commit
0c442dc1f6
1 changed files with 20 additions and 22 deletions
|
@ -2632,13 +2632,12 @@ Zotero.Sync.Server.Data = new function() {
|
|||
|
||||
// TEMP: Resend tags requested by server
|
||||
try {
|
||||
if (xml.fixtags.length()) {
|
||||
for each(var tagsNode in xml.fixtags.tags) {
|
||||
var libraryID = _libID(tagsNode.@libraryID);
|
||||
for each(var tagsNode in updatedNode.xpath("fixtags/tags")) {
|
||||
var libraryID = _libID(tagsNode.getAttribute('libraryID'));
|
||||
if (libraryID && !Zotero.Libraries.isEditable(libraryID)) {
|
||||
continue;
|
||||
}
|
||||
var tagsKeys = tagsNode.toString().split(' ');
|
||||
var tagsKeys = tagsNode.textContent.split(' ');
|
||||
for each(var key in tagsKeys) {
|
||||
var sql = "SELECT tagID FROM tags WHERE libraryID=? AND key=?";
|
||||
var tagID = Zotero.DB.valueQuery(sql, [libraryID, key]);
|
||||
|
@ -2657,7 +2656,6 @@ Zotero.Sync.Server.Data = new function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
Components.utils.reportError(e);
|
||||
Zotero.debug(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue