@@ -72,7 +72,7 @@ if (remotetk.Client === undefined) {
72
72
* @param [error=null] function to which jqXHR will be passed in case of error
73
73
*/
74
74
remotetk.Client.prototype.describe = function(objtype, callback, error) {
75
- RemoteTKController.describe( objtype, function(result){
75
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.describe}', objtype, function(result){
76
76
handleResult(result, callback, error);
77
77
}, {
78
78
escape: false
@@ -89,7 +89,7 @@ if (remotetk.Client === undefined) {
89
89
* @param [error=null] function to which jqXHR will be passed in case of error
90
90
*/
91
91
remotetk.Client.prototype.create = function(objtype, fields, callback, error) {
92
- RemoteTKController.create( objtype, JSON.stringify(fields), function(result){
92
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.create}', objtype, JSON.stringify(fields), function(result){
93
93
handleResult(result, callback, error);
94
94
}, {
95
95
escape: false
@@ -106,7 +106,7 @@ if (remotetk.Client === undefined) {
106
106
* @param [error=null] function to which jqXHR will be passed in case of error
107
107
*/
108
108
remotetk.Client.prototype.retrieve = function(objtype, id, fieldlist, callback, error) {
109
- RemoteTKController.retrieve( objtype, id, fieldlist, function(result){
109
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.retrieve}', objtype, id, fieldlist, function(result){
110
110
handleResult(result, callback, error);
111
111
}, {
112
112
escape: false
@@ -127,7 +127,7 @@ if (remotetk.Client === undefined) {
127
127
*/
128
128
/*
129
129
remotetk.Client.prototype.upsert = function(objtype, externalIdField, externalId, fields, callback, error) {
130
- RemoteTKController.upser( objtype, externalIdField, externalId, JSON.stringify(fields), function(result){
130
+ Visualforce.remoting.Manager.invokeAction('$RemoteAction. RemoteTKController.upser', objtype, externalIdField, externalId, JSON.stringify(fields), function(result){
131
131
handleResult(result, callback, error, true);
132
132
}, {
133
133
escape: false
@@ -146,7 +146,7 @@ if (remotetk.Client === undefined) {
146
146
* @param [error=null] function to which jqXHR will be passed in case of error
147
147
*/
148
148
remotetk.Client.prototype.update = function(objtype, id, fields, callback, error) {
149
- RemoteTKController.updat( objtype, id, JSON.stringify(fields), function(result){
149
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.updat}', objtype, id, JSON.stringify(fields), function(result){
150
150
handleResult(result, callback, error, true);
151
151
}, {
152
152
escape: false
@@ -162,7 +162,7 @@ if (remotetk.Client === undefined) {
162
162
* @param [error=null] function to which jqXHR will be passed in case of error
163
163
*/
164
164
remotetk.Client.prototype.del = function(objtype, id, callback, error) {
165
- RemoteTKController.del( objtype, id, function(result){
165
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.del}', objtype, id, function(result){
166
166
handleResult(result, callback, error, true);
167
167
}, {
168
168
escape: false
@@ -177,7 +177,7 @@ if (remotetk.Client === undefined) {
177
177
* @param [error=null] function to which jqXHR will be passed in case of error
178
178
*/
179
179
remotetk.Client.prototype.query = function(soql, callback, error) {
180
- RemoteTKController.query( soql, function(result){
180
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.query}', soql, function(result){
181
181
handleResult(result, callback, error);
182
182
}, {
183
183
escape: false
@@ -192,7 +192,7 @@ if (remotetk.Client === undefined) {
192
192
* @param [error=null] function to which jqXHR will be passed in case of error
193
193
*/
194
194
remotetk.Client.prototype.search = function(sosl, callback, error) {
195
- RemoteTKController.search( sosl, function(result){
195
+ Visualforce.remoting.Manager.invokeAction('{!$RemoteAction. RemoteTKController.search}', sosl, function(result){
196
196
handleResult(result, callback, error);
197
197
}, {
198
198
escape: false
0 commit comments