- Timestamp:
- 2015-05-11T06:51:55+12:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/documentmaker_scripts_util.js
r29499 r29861 302 302 } 303 303 304 var changes = de.Changes.getChangedEditableSections(); 304 var changes = changesToUpdate(); 305 //Clean changes 306 editableInitStates = editableLastStates; 305 307 for(var i = 0; i < changes.length; i++) 306 308 { … … 385 387 386 388 /* need to clear the changes from the page so that we don't process them again next time */ 387 de.Changes.clear();388 389 while (_deletedMetadata.length>0) { 389 390 _deletedMetadata.pop(); … … 720 721 //This registering can cause a sizeable delay so we'll thread it (effectively) so the browser is not paused 721 722 cell.originalValue = cell.innerHTML; 722 setTimeout(function(){ de.doc.registerEditSection(cell)}, 0);723 setTimeout(function(){addEditableState(cell, editableInitStates)}, 0); 723 724 } 724 725 … … 815 816 nameCell.attr("class", "metaTableCellName"); 816 817 var valueCell = $("<td>", {"class": "metaTableCell"}); 818 valueCell.attr("contenteditable","true"); 817 819 818 820 newRow.append(nameCell); … … 827 829 _undoOperations.push(undo); 828 830 829 //Threading this function here probably isn't necessary like the other times it is called830 de.doc.registerEditSection(valueCell[0]);831 831 }); 832 832 table.addRowButton = addRowButton;
Note:
See TracChangeset
for help on using the changeset viewer.