blob: 5a1c061f24870be30af17e9ae156bde77653cbb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$(function(){
var _frm_editmarker_initialized;
var _frm_editroute_initialized;
var _frm_editevent_initialized;
var update_editmarker = function(){
$.ajax({url: edit_url,
dataType: "html",
success: function (data) {
$('#frm-edit-marker').html(data);
},
error: function (data) {
$('#frm-edit-marker').html("<p class='warning'>"+
default_error_message+"</p>");
}
});
};
$("#action-carte").click(function(){
$('#action-participate').removeClass('ui-state-active');
$('#action-carte').addClass('ui-state-active');
$('#edit-actions').hide();
$('#map-actions').show();
$('#edit-panel').hide();
$('#map-panel').show();
});
$("#action-participate").click(function(){
$('#action-carte').removeClass('ui-state-active');
$('#action-participate').addClass('ui-state-active');
$('#map-actions').hide();
$('#edit-actions').show();
$('#map-panel').hide();
$('#edit-panel').show();
// if the default is initialized the other are not
if (!_frm_editmarker_initialized){
update_editmarker();
}
});
});
|