From d8d49429f3d913fea56a631ac0a5b61c80916424 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 15 Mar 2011 16:39:22 +0100 Subject: clean toxcreate.js, fix cancel edit modelname / pt2 --- public/javascripts/toxcreate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'public') diff --git a/public/javascripts/toxcreate.js b/public/javascripts/toxcreate.js index aea46f1..3f243fe 100755 --- a/public/javascripts/toxcreate.js +++ b/public/javascripts/toxcreate.js @@ -111,7 +111,7 @@ $(function() { }); -jQuery.fn.editModel = function(type, options) { +jQuery.fn.editModel = function(options) { var defaults = { method: 'get', action: this.attr('href'), @@ -138,7 +138,7 @@ jQuery.fn.editModel = function(type, options) { }); }; -jQuery.fn.cancelEdit = function(type, options) { +jQuery.fn.cancelEdit = function(options) { var defaults = { method: 'get', action: 'model/' + options.id + '/name?mode=show', @@ -165,7 +165,7 @@ jQuery.fn.cancelEdit = function(type, options) { }); }; -jQuery.fn.saveModel = function(type, options) { +jQuery.fn.saveModel = function(options) { var defaults = { method: 'put', action: 'model/' + options.id, -- cgit v1.2.3