Resolved an issue - fetching the source, and target type functions in

the CAST module. Make the changes in the CAST module too for the
changes done in the NodeAjaxOptionsControl in the commit-id:
944bdbb96c.

We've changed the signature (arguments) of the 'options' & 'transform'
functions.
This commit is contained in:
Sanket Mehta 2016-04-22 18:03:46 +05:30 committed by Ashesh Vashi
parent 085ce50545
commit 244f5d59d2

View File

@ -177,20 +177,19 @@ function($, _, S, pgAdmin, pgBrowser, alertify) {
type: 'text', disabled: function(m) { return !m.isNew(); },
group: 'Definition', mode: ['create'],
control: 'node-ajax-options',
options: function() {
var srcTyp = this.model.get('srctyp');
var trgtyp = this.model.get('trgtyp');
options: function(control) {
var srcTyp = control.model.get('srctyp');
var trgtyp = control.model.get('trgtyp');
var res = [];
if(srcTyp != undefined && srcTyp != '' &&
trgtyp != undefined && trgtyp != '')
{
var node = this.field.get('schema_node'),
var node = control.field.get('schema_node'),
_url = node.generate_url.apply(
node, [
null, 'get_functions', this.field.get('node_data'), false,
this.field.get('node_info')
null, 'get_functions', control.field.get('node_data'), false,
control.field.get('node_info')
]);
$.ajax({
type: 'POST',