1 |
26600
|
sandro.lab
|
|
2 |
|
|
$(document).ready(function() {
|
3 |
|
|
|
4 |
|
|
$("pre.profile.toggleEnabled span").live("click", touchHandler);
|
5 |
|
|
|
6 |
|
|
$("#touchlink").click(function() {
|
7 |
|
|
|
8 |
|
|
if ($("pre.profile").is('.toggleEnabled')) {
|
9 |
|
|
$(this).html("touch");
|
10 |
|
|
} else {
|
11 |
|
|
$(this).html("untouch");
|
12 |
|
|
}
|
13 |
|
|
$("pre.profile").toggleClass("toggleEnabled");
|
14 |
|
|
});
|
15 |
|
|
});
|
16 |
|
|
|
17 |
|
|
function touchHandler() {
|
18 |
|
|
var field=$(this);
|
19 |
|
|
$.ajax({
|
20 |
|
|
url: "touch?xpath=" + field.attr('id'),
|
21 |
|
|
success: function() {
|
22 |
|
|
//field.html(data);
|
23 |
|
|
location.reload(true);
|
24 |
|
|
}
|
25 |
|
|
});
|
26 |
|
|
}
|