37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
|
|
<button class="mac-btn-secondary text-secondary mac-input-medium js-list-add-trigger">添加</button>
|
|
<button class="mac-btn-secondary text-secondary mac-input-medium js-list-node-fly">fly</button>
|
|
|
|
<script type="module">
|
|
|
|
$(function() {
|
|
$(".js-list-node-fly").click(function(){
|
|
var sPathWww = $("#nasa_site_www").val();
|
|
|
|
TomAlert.show({
|
|
sMsg: "fly?",
|
|
sType: 'warning',
|
|
sConfirm: 'true',
|
|
fConfirmed: function(oEvent, oData) {
|
|
$.ajax({
|
|
url: '/nasa/fu/node/action/fly',
|
|
type: 'GET',
|
|
dataType: 'json',
|
|
data: {
|
|
'nasa_site_www':sPathWww
|
|
},
|
|
success: function(j) {
|
|
TomAlert.show({
|
|
sMsg: j.sMsg,
|
|
sType: 'success',
|
|
});
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
});
|
|
});
|
|
|
|
</script>
|