[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [17014] Property: add missing file
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [17014] Property: add missing file |
Date: |
Thu, 31 Aug 2017 05:46:05 -0400 (EDT) |
Revision: 17014
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17014
Author: sigurdne
Date: 2017-08-31 05:46:04 -0400 (Thu, 31 Aug 2017)
Log Message:
-----------
Property: add missing file
Added Paths:
-----------
trunk/property/js/portico/location_exception_category_text.edit.js
Added: trunk/property/js/portico/location_exception_category_text.edit.js
===================================================================
--- trunk/property/js/portico/location_exception_category_text.edit.js
(rev 0)
+++ trunk/property/js/portico/location_exception_category_text.edit.js
2017-08-31 09:46:04 UTC (rev 17014)
@@ -0,0 +1,41 @@
+$(document).ready(function ()
+{
+
+ $("#category_id").change(function ()
+ {
+ var category_id = $(this).val() || -1;
+ var oArgs = {menuaction: 'property.uigeneric.get_list', type:
'location_exception_category_text'};
+ var requestUrl = phpGWLink('index.php', oArgs, true);
+
+ $("#category_text_id").find("option:not(:first)").remove();
+
+ $.ajax({
+ type: 'POST',
+ dataType: 'json',
+ url: requestUrl,
+ data: {
+ type: 'location_exception_category_text',
+ filter: {category_id: category_id},
+ selected: $("#category_text_id").val(),
+ mapping: {name: 'content'},
+ },
+ success: function (data)
+ {
+ var selected;
+ if (data != null)
+ {
+ $.each(data, function (i, d)
+ {
+ selected = '';
+ if (d.selected == 1)
+ {
+ selected =
'selected="selected"';
+ }
+
$('#category_text_id').append('<option value="' + d.id + '"' + selected + '>' +
d.name + '</option>');
+ });
+ }
+ }
+ });
+ });
+
+});
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [17014] Property: add missing file,
sigurdne <=