@@ -66,7 +66,7 @@ if (remotetk.Client === undefined) {
66
66
* @param [error=null] function to which jqXHR will be passed in case of error
67
67
*/
68
68
remotetk.Client.prototype.describe = function(objtype, callback, error) {
69
- RemoteTKController.describe( objtype, function(result){
69
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.describe}', objtype, function(result){
70
70
handleResult(result, callback, error);
71
71
}, {
72
72
escape: false
@@ -83,7 +83,7 @@ if (remotetk.Client === undefined) {
83
83
* @param [error=null] function to which jqXHR will be passed in case of error
84
84
*/
85
85
remotetk.Client.prototype.create = function(objtype, fields, callback, error) {
86
- RemoteTKController.create( objtype, JSON.stringify(fields), function(result){
86
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.create}', objtype, JSON.stringify(fields), function(result){
87
87
handleResult(result, callback, error);
88
88
}, {
89
89
escape: false
@@ -100,7 +100,7 @@ if (remotetk.Client === undefined) {
100
100
* @param [error=null] function to which jqXHR will be passed in case of error
101
101
*/
102
102
remotetk.Client.prototype.retrieve = function(objtype, id, fieldlist, callback, error) {
103
- RemoteTKController.retrieve( objtype, id, fieldlist, function(result){
103
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.retrieve}', objtype, id, fieldlist, function(result){
104
104
handleResult(result, callback, error);
105
105
}, {
106
106
escape: false
@@ -121,7 +121,7 @@ if (remotetk.Client === undefined) {
121
121
*/
122
122
/*
123
123
remotetk.Client.prototype.upsert = function(objtype, externalIdField, externalId, fields, callback, error) {
124
- RemoteTKController.upser( objtype, externalIdField, externalId, JSON.stringify(fields), function(result){
124
+ Visualforce.remoting.Manager.invokeAction('$RemoteAction. RemoteTKController.upser', objtype, externalIdField, externalId, JSON.stringify(fields), function(result){
125
125
handleResult(result, callback, error, true);
126
126
}, {
127
127
escape: false
@@ -140,7 +140,7 @@ if (remotetk.Client === undefined) {
140
140
* @param [error=null] function to which jqXHR will be passed in case of error
141
141
*/
142
142
remotetk.Client.prototype.update = function(objtype, id, fields, callback, error) {
143
- RemoteTKController.updat( objtype, id, JSON.stringify(fields), function(result){
143
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.updat}', objtype, id, JSON.stringify(fields), function(result){
144
144
handleResult(result, callback, error, true);
145
145
}, {
146
146
escape: false
@@ -156,7 +156,7 @@ if (remotetk.Client === undefined) {
156
156
* @param [error=null] function to which jqXHR will be passed in case of error
157
157
*/
158
158
remotetk.Client.prototype.del = function(objtype, id, callback, error) {
159
- RemoteTKController.del( objtype, id, function(result){
159
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.del}', objtype, id, function(result){
160
160
handleResult(result, callback, error, true);
161
161
}, {
162
162
escape: false
@@ -171,7 +171,7 @@ if (remotetk.Client === undefined) {
171
171
* @param [error=null] function to which jqXHR will be passed in case of error
172
172
*/
173
173
remotetk.Client.prototype.query = function(soql, callback, error) {
174
- RemoteTKController.query( soql, function(result){
174
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.query}', soql, function(result){
175
175
handleResult(result, callback, error);
176
176
}, {
177
177
escape: false
@@ -186,7 +186,7 @@ if (remotetk.Client === undefined) {
186
186
* @param [error=null] function to which jqXHR will be passed in case of error
187
187
*/
188
188
remotetk.Client.prototype.search = function(sosl, callback, error) {
189
- RemoteTKController.search( sosl, function(result){
189
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.search}', sosl, function(result){
190
190
handleResult(result, callback, error);
191
191
}, {
192
192
escape: false
0 commit comments