Created
March 6, 2013 14:01
-
-
Save oak-tree/5099486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
save:function (nousevar,settings) { | |
//var url = this.parentType + '/' + this.parentId + '/' + this.innerObjectType + 's' + '/add/' + innerObjectId | |
url = this.urlRoot(); | |
//var url = "keyword/" + this.id + "/superKeywords/add/" + superId | |
console.log('add relation between ' + this.parentId + ' and ' + this.id); | |
var self = this; | |
var mustSettings = { | |
url : url, | |
dataType : "json", | |
processData: false, | |
type : "PUT", | |
data : JSON.stringify(this.getWhiteListAttributes()), | |
} | |
$.extend(settings, mustSettings) | |
$.ajax(settings); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment