dnet40/modules/cnr-enabling-inspector/tags/cnr-enabling-inspector-1.0.0/src/main/resources/eu/dnetlib/enabling/views/inspector/touch.js @ 40613
1 |
|
---|---|
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 |
}
|
- « Previous
- 1
- …
- 18
- 19
- 20
- Next »