- Timestamp:
- 2021-12-17T10:16:06+13:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default_wip/js/visual-xml-editor.js
r35821 r35822 291 291 292 292 $.ajax(url) 293 . success(function(response)293 .done(function(response) 294 294 { 295 295 startIndex = response.search("<templateList>") + "<templateList>".length; … … 323 323 } 324 324 }) 325 . error(function()325 .fail(function() 326 326 { 327 327 console.log("Error retrieving GSLIB templates"); … … 383 383 var customElemHolder = $("<div>"); 384 384 var customCreateButton = $("<button>Create element</button>"); 385 customCreateButton. click(function()385 customCreateButton.on("click", function() 386 386 { 387 387 var elemName = customInput.val(); … … 648 648 649 649 var _editButton = $("<button>Edit text</button>"); 650 _editButton. click(function()650 _editButton.on("click", function() 651 651 { 652 652 if(_editButton.button("option", "label") == "Edit text") … … 768 768 var link = $("<a href=\"javascript:;\">edit</a>"); 769 769 770 link. click(function()770 link.on("click", function() 771 771 { 772 772 _thisAttr.editMode(); … … 781 781 var cell = $("<td>", {"class":"veDeleteCell"}); 782 782 var link = $("<a href=\"javascript:;\">delete</a>"); 783 link. click(function()783 link.on("click", function() 784 784 { 785 785 _transactions.push({type:"remAttr", elem:_xmlElem, row:_row, rowParent:_row.parent(), name:_name, value:_value}); … … 824 824 editLink.text("done"); 825 825 editLink.off("click"); 826 editLink. click(function()826 editLink.on("click", function() 827 827 { 828 828 _thisAttr.saveEdits(); … … 871 871 editLink.text("edit"); 872 872 editLink.off("click"); 873 editLink. click(function()873 editLink.on("click", function() 874 874 { 875 875 _thisAttr.editMode(); … … 1175 1175 var errorFunction = function() 1176 1176 { 1177 $.ajax(url). success(successFunction).error(errorFunction);1177 $.ajax(url).done(successFunction).fail(errorFunction); 1178 1178 } 1179 1179 1180 $.ajax(url). success(successFunction).error(errorFunction);1180 $.ajax(url).done(successFunction).fail(errorFunction); 1181 1181 } 1182 1182 … … 1248 1248 1249 1249 var addButton = $("<button>Add attribute</button>"); 1250 addButton. click(function()1250 addButton.on("click", function() 1251 1251 { 1252 1252 var newAtt; … … 1330 1330 event.stopPropagation(); 1331 1331 }); 1332 _div. click(function(event)1332 _div.on("click", function(event) 1333 1333 { 1334 1334 event.stopPropagation();
Note:
See TracChangeset
for help on using the changeset viewer.