[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [9986]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [9986] |
Date: |
Tue, 11 Sep 2012 07:35:53 +0000 |
Revision: 9986
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9986
Author: vator
Date: 2012-09-11 07:35:52 +0000 (Tue, 11 Sep 2012)
Log Message:
-----------
Modified Paths:
--------------
trunk/controller/js/controller/ajax.js
Modified: trunk/controller/js/controller/ajax.js
===================================================================
--- trunk/controller/js/controller/ajax.js 2012-09-11 06:45:27 UTC (rev
9985)
+++ trunk/controller/js/controller/ajax.js 2012-09-11 07:35:52 UTC (rev
9986)
@@ -6,6 +6,11 @@
}
+ $("#curtain").click(function() {
+ $("#curtain").hide();
+ $("#popupBox").hide();
+ });
+
$("#component_form").submit(function(event){
var selected_control_group = $("#control_group_id
option:selected").val();
@@ -17,12 +22,38 @@
});
+ $(".show-control-details").click(function() {
+ var clickElem = $(this);
+
+ var requestUrl = $(clickElem).attr("href");
+ $.ajax({
+ type: 'POST',
+ url: requestUrl,
+ success: function(data) {
+ if(data){
+
+ $("#popupBox").show();
+ $("#popupBox").html( data );
+ $("#curtain").show();
+ }
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ if (XMLHttpRequest.status === 401) {
+ location.href = '/';
+ }
+ }
+ });
+
+ return false;
+ });
+
+
/* ================================ CONTROL LOCATION
================================== */
// Update location category based on location type
$("#type_id").change(function () {
- var location_type_id = $(this).val();
+ var location_type_id = $(this).val();
var oArgs =
{menuaction:'controller.uicontrol_location.get_location_category'};
var requestUrl = phpGWLink('index.php', oArgs, true);
@@ -1024,6 +1055,17 @@
});
}
+function timestampToDate($timestamp){
+ var date = new Date($timestamp * 1000);
+ var year = date.getFullYear();
+ var month = date.getMonth();
+ var day = date.getDay();
+
+ var dateStr = day + "/" + month + "-" + year;
+
+ return dateStr;
+}
+
//Updates order number for hidden field and number in front of row
function update_order_nr_for_row(element, sign){
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [9986],
Torstein <=