From: <al...@us...> - 2008-10-01 22:44:59
|
Revision: 718 http://sciret.svn.sourceforge.net/sciret/?rev=718&view=rev Author: alpeb Date: 2008-10-01 22:44:53 +0000 (Wed, 01 Oct 2008) Log Message: ----------- this fixes a lot of problems under IE Modified Paths: -------------- trunk/javascript/general.js Modified: trunk/javascript/general.js =================================================================== --- trunk/javascript/general.js 2008-10-01 22:18:33 UTC (rev 717) +++ trunk/javascript/general.js 2008-10-01 22:44:53 UTC (rev 718) @@ -551,7 +551,7 @@ var buttons = [{text: "Save", handler: this.save}]; if (responseObj.argument > 0) { - buttons.push({text: "Delete", handler: function() {SCIRET.todos.delete(responseObj.argument)}}); + buttons.push({text: "Delete", handler: function() {SCIRET.todos.remove(responseObj.argument)}}); } buttons.push({text: "Cancel", handler: function() {this.cancel()}}); @@ -602,7 +602,8 @@ this.showForm(response.todoId); }, - delete: function(todoId) { + // can't use the "delete" name because in stupid IE it's reserved + remove: function(todoId) { if (!confirm("Are you sure you wish to delete this To-Do?")) { return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |