Commit 54d0eefdc8d61d475a6429056bf4f0478df8867c

Authored by Cleverson Sacramento
1 parent 7409afbb
Exists in master

FWK-196: Melhorias na organização do código-fonte gerado pelo arquétipo

demoiselle-html-rest 

Task-Url: https://demoiselle.atlassian.net/browse/FWK-196
archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/proxy/bookmark.js
@@ -34,11 +34,11 @@ var BookmarkProxy = { @@ -34,11 +34,11 @@ var BookmarkProxy = {
34 }); 34 });
35 }, 35 },
36 36
37 - update : function($id, $form) { 37 + update : function($id, $data) {
38 return $.ajax({ 38 return $.ajax({
39 type : "PUT", 39 type : "PUT",
40 url : this.url + "/" + $id, 40 url : this.url + "/" + $id,
41 - data : JSON.stringify($form), 41 + data : JSON.stringify($data),
42 contentType : "application/json", 42 contentType : "application/json",
43 beforeSend : function(request) { 43 beforeSend : function(request) {
44 request.setRequestHeader("Authorization", App.getToken()); 44 request.setRequestHeader("Authorization", App.getToken());