[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15016]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [15016] |
Date: |
Fri, 13 May 2016 00:39:35 +0000 (UTC) |
Revision: 15016
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15016
Author: nelson224
Date: 2016-05-13 00:39:35 +0000 (Fri, 13 May 2016)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/js/portico/generic_document.edit.js
Modified: branches/dev-syncromind-2/property/js/portico/generic_document.edit.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/generic_document.edit.js
2016-05-12 20:04:04 UTC (rev 15015)
+++ branches/dev-syncromind-2/property/js/portico/generic_document.edit.js
2016-05-13 00:39:35 UTC (rev 15016)
@@ -1,6 +1,23 @@
$(document).ready(function ()
{
+ $('#entity_group_id').change(function ()
+ {
+ var oArgs1 = {menuaction:
'property.uigeneric_document.get_location_filter'};
+ var requestUrl = phpGWLink('index.php', oArgs1, true);
+ var data = {"entity_group_id": $(this).val()};
+ JqueryPortico.execute_ajax(requestUrl,
+ function(result){
+ var $el = $("#location_id");
+ $el.empty();
+ $.each(result, function(key, value) {
+
$el.append($("<option></option>").attr("value", value.id).text(value.name));
+ });
+ $( "#location_id" ).change();
+ }, data, "GET", "json"
+ );
+ });
+
$('#location_id').change(function ()
{
var oArgs1 = {menuaction:
'property.uigeneric_document.get_relations', location_id:
$('#location_id').val(), id: $('#id').val()};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15016],
nelson . guerra <=