[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [9473]
From: |
Torstein |
Subject: |
[Fmsystem-commits] [9473] |
Date: |
Thu, 31 May 2012 11:25:27 +0000 |
Revision: 9473
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9473
Author: vator
Date: 2012-05-31 11:25:23 +0000 (Thu, 31 May 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-05-31 11:19:18 UTC (rev
9472)
+++ trunk/controller/js/controller/ajax.js 2012-05-31 11:25:23 UTC (rev
9473)
@@ -1,54 +1,5 @@
$(document).ready(function(){
-
- /*
- $("#searchLocationName").bind("keyup", function(event) {
- var thisTextField = $(this);
- var location_name = String.fromCharCode(event.which);
- var level = 1;
- var locationSearchString = $(this).val();
-
- var oArgs =
{menuaction:'property.bolocation.get_locations_by_name'};
- var baseUrl = phpGWLink('index.php', oArgs, false);
- var requestUrl = baseUrl + "&location_name=" +
locationSearchString + "&level=" + level + "&phpgw_return_as=json";
-
- $.ajax({
- type: 'POST',
- dataType: 'json',
- url: requestUrl,
- success: function(data) {
- if( data )
- {
- var obj = data;
-
- var htmlString = "<ul
id='suggestList'>";
- $.each(obj, function(i) {
- if(i % 2 == 0){
- htmlString += "<li
class='even'><span>" + obj[i].name + "</span><span>" + obj[i].location_code +
"</span></li>";
- }else{
- htmlString +=
"<li><span>" + obj[i].name + "</span><span>" + obj[i].location_code +
"</span></li>";
- }
-
- });
-
- htmlString += "</ul>";
- }
-
- $("#searchLocationName").after(htmlString);
-
- var searchBoxTop =
$("#searchLocationName").position().top;
- var searchBoxHeight =
$("#searchLocationName").height();
- var searchBoxLeft =
$("#searchLocationName").position().left;
-
- $("#suggestList").css("top", searchBoxTop +
searchBoxHeight + 8);
- $("#suggestList").css("left", searchBoxLeft);
- }
- });
- });
- */
-
-
-
$(".control_item_type").click(function(){
var thisBtn = $(this).find(".btn");
var thisRadio = $(this).find("input[type=radio]");
@@ -108,7 +59,6 @@
htmlString = "<select
class='choose_loc' name='" + new_loc_id + "' id='" + new_loc_id + "' >" +
"<option
value = ''>" + data.length + " lokasjone(r) funnet</option>";
-
var obj = data;
$.each(obj, function(i) {
@@ -128,10 +78,10 @@
});
});
- $("#choose_my_location").change(function () {
+ $(".selectLocation").change(function () {
var location_code = $(this).val();
var thisForm = $(this).parents("form");
-
+
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();
@@ -1061,4 +1011,4 @@
// Updating order number in front of row
$(span_order_nr).text(updated_order_nr);
-}
+}
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [9473],
Torstein <=