[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12409] change order of the parameters in execute_aja
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [12409] change order of the parameters in execute_ajax() |
Date: |
Tue, 02 Dec 2014 17:01:25 +0000 |
Revision: 12409
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12409
Author: nelson224
Date: 2014-12-02 17:01:19 +0000 (Tue, 02 Dec 2014)
Log Message:
-----------
change order of the parameters in execute_ajax()
Modified Paths:
--------------
branches/dev-syncromind/property/inc/class.uilocation.inc.php
Modified: branches/dev-syncromind/property/inc/class.uilocation.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uilocation.inc.php
2014-12-01 23:35:13 UTC (rev 12408)
+++ branches/dev-syncromind/property/inc/class.uilocation.inc.php
2014-12-02 17:01:19 UTC (rev 12409)
@@ -392,14 +392,14 @@
$code = '
var link = "'.$link.'";
var data = {"district_id": $(this).val()};
- execute_ajax(link, "GET", "json", data,
+ execute_ajax(link,
function(result){
var $el = $("#part_of_town_id");
$el.empty();
$.each(result, function(key,
value) {
$el.append($("<option></option>").attr("value", value.id).text(value.name));
});
- }
+ }, data, "GET", "json"
);
';
@@ -471,14 +471,14 @@
$code = '
var link = "'.$link.'";
var data = {"district_id": $(this).val()};
- execute_ajax(link, "GET", "json", data,
+ execute_ajax(link,
function(result){
var $el = $("#part_of_town_id");
$el.empty();
$.each(result, function(key,
value) {
$el.append($("<option></option>").attr("value", value.id).text(value.name));
});
- }
+ }, data, "GET", "json"
);
';
@@ -584,14 +584,14 @@
$code = '
var link = "'.$link.'";
var data = {"district_id": $(this).val()};
- execute_ajax(link, "GET", "json", data,
+ execute_ajax(link,
function(result){
var $el = $("#part_of_town_id");
$el.empty();
$.each(result, function(key,
value) {
$el.append($("<option></option>").attr("value", value.id).text(value.name));
});
- }
+ }, data, "GET", "json"
);
';
@@ -1304,10 +1304,10 @@
});
var data = {"assign": assign,
"assign_orig": assign_orig, "user_id": $("#user_id").val(), "role_id":
$("#role_id").val()};
- execute_ajax(action, "POST", "", data,
function(result){
+ execute_ajax(action, function(result){
document.getElementById("message").innerHTML += "<br/>" + result;
oTable.fnDraw();
- });
+ }, data, "POST");
';
$data['datatable']['actions'][] = array
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12409] change order of the parameters in execute_ajax(),
Nelson Guerra <=