[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10095] Logistic: Added handler select_activity
From: |
Torstein |
Subject: |
[Fmsystem-commits] [10095] Logistic: Added handler select_activity |
Date: |
Wed, 03 Oct 2012 07:10:31 +0000 |
Revision: 10095
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10095
Author: vator
Date: 2012-10-03 07:10:31 +0000 (Wed, 03 Oct 2012)
Log Message:
-----------
Logistic: Added handler select_activity
Modified Paths:
--------------
trunk/logistic/js/logistic/ajax.js
Modified: trunk/logistic/js/logistic/ajax.js
===================================================================
--- trunk/logistic/js/logistic/ajax.js 2012-10-03 07:09:46 UTC (rev 10094)
+++ trunk/logistic/js/logistic/ajax.js 2012-10-03 07:10:31 UTC (rev 10095)
@@ -1,24 +1,15 @@
$(document).ready(function(){
$("#select_activity").change(function () {
- var activity_id = $(this).val();
+ var parent_id = $(this).val();
var thisForm = $(this).closest("form");
var project_id =
$(thisForm).find("input[name=project_id]").val();
+ var activity_id =
$(thisForm).find("input[name=activity_id]").val();
- /*
-
-
- var period_type =
$(thisForm).find("input[name='period_type']").val();
- var year = $(thisForm).find("input[name='year']").val();
- var month = $(thisForm).find("input[name='month']").val();
-
- var oArgs =
{menuaction:'controller.uicalendar.view_calendar_for_month'};
+ var oArgs = {menuaction:'logistic.uiactivity.edit'};
var baseUrl = phpGWLink('index.php', oArgs, false);
- var requestUrl = baseUrl + "&location_code=" + location_code +
"&year=" + year + "&month=" + month;
+ var requestUrl = baseUrl + "&parent_id=" + parent_id +
"&activity_id=" + activity_id;
window.location.href = requestUrl;
-
-
- */
});
});
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10095] Logistic: Added handler select_activity,
Torstein <=