summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-03-15 16:39:22 +0100
committermr <mr@mrautenberg.de>2011-03-15 16:39:22 +0100
commitd8d49429f3d913fea56a631ac0a5b61c80916424 (patch)
tree4edb78e6d019fbc1906b712acf9ea1da5e2f2574 /public
parent422a5abc6c56f237d0bc84bce613e688867d0e16 (diff)
clean toxcreate.js, fix cancel edit modelname / pt2
Diffstat (limited to 'public')
-rwxr-xr-xpublic/javascripts/toxcreate.js6
1 files changed, 3 insertions, 3 deletions
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,