[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13740]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13740] |
Date: |
Tue, 18 Aug 2015 00:21:22 +0000 |
Revision: 13740
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13740
Author: nelson224
Date: 2015-08-18 00:21:22 +0000 (Tue, 18 Aug 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/phpgwapi/js/jquery/common.js
Modified: branches/dev-syncromind/phpgwapi/js/jquery/common.js
===================================================================
--- branches/dev-syncromind/phpgwapi/js/jquery/common.js 2015-08-18
00:20:32 UTC (rev 13739)
+++ branches/dev-syncromind/phpgwapi/js/jquery/common.js 2015-08-18
00:21:22 UTC (rev 13740)
@@ -338,8 +338,27 @@
return aReturn;
};
+JqueryPortico.show_message = function(n, result)
+{
+ document.getElementById('message' + n).innerHTML = '';
+
+ if (typeof(result.message) !== 'undefined')
+ {
+ $.each(result.message, function (k, v) {
+ document.getElementById('message' + n).innerHTML +=
v.msg + '<br/>';
+ });
+ }
+
+ if (typeof(result.error) !== 'undefined')
+ {
+ $.each(result.error, function (k, v) {
+ document.getElementById('message' + n).innerHTML +=
v.msg + '<br/>';
+ });
+ }
+};
+
JqueryPortico.execute_ajax = function(requestUrl, callback, data,type,
dataType)
-{
+{
type = typeof type !== 'undefined' ? type : 'POST';
dataType = typeof dataType !== 'undefined' ? dataType : 'html';
data = typeof data !== 'undefined' ? data : {};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13740],
Nelson Guerra <=