[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12284] add custom action
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [12284] add custom action |
Date: |
Mon, 10 Nov 2014 23:12:46 +0000 |
Revision: 12284
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12284
Author: nelson224
Date: 2014-11-10 23:12:45 +0000 (Mon, 10 Nov 2014)
Log Message:
-----------
add custom action
Modified Paths:
--------------
branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
Modified: branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
===================================================================
--- branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
2014-11-10 20:28:22 UTC (rev 12283)
+++ branches/dev-syncromind/phpgwapi/templates/base/datatable_jquery.xsl
2014-11-10 23:12:45 UTC (rev 12284)
@@ -533,6 +533,27 @@
oTable.fnDraw();
}
+
else if
(target == 'custom')
+
{
+
var assign = [];
+
var assign_orig = [];
+
+
+
$('.mychecks:checked').each(function () {
+
assign.push($(this).val());
+
});
+
+
$('.orig_check').each(function () {
+
assign_orig.push($(this).val());
+
});
+
+
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){
+
document.getElementById("message").innerHTML += '<br/>' +
result;
+
oTable.fnDraw();
+
});
+
+
}
else
{
window.open(action,target);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12284] add custom action,
Nelson Guerra <=