重新修改背景音乐的功能实现,原来的功能不起作用
This commit is contained in:
@@ -712,7 +712,29 @@ function dockingInfo() {
|
||||
.dialog({ title: lang.DockingInformation, width: 600, height: 380 })
|
||||
.dialog("open");
|
||||
}
|
||||
|
||||
function deletemusic()
|
||||
{
|
||||
$.ajax({
|
||||
url: '/SysHotel/DeleteBGM/',
|
||||
type: 'Post',
|
||||
//contentType: 'application/x-www-form-urlencoded',
|
||||
contentType: 'application/json',
|
||||
//data: JSON.stringify(getdata),
|
||||
data: {},
|
||||
success: function(response) {
|
||||
$("#welcomebgmid").val("");
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.log(error);
|
||||
},
|
||||
beforeSend: function(xhr) {
|
||||
console.log('Sending request...');
|
||||
},
|
||||
complete: function(xhr, status) {
|
||||
console.log('Request completed.');
|
||||
}
|
||||
});
|
||||
}
|
||||
function uploadmusic()
|
||||
{
|
||||
var filename = $("#welcomebgm").val();
|
||||
@@ -725,8 +747,10 @@ function uploadmusic()
|
||||
secureuri: false,
|
||||
fileElementId: "welcomebgm",
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
|
||||
success: function (response) {
|
||||
console.log(response);
|
||||
var fname= response.FileName;
|
||||
$("#welcomebgmid").val(fname);
|
||||
},
|
||||
error: function (data, status, e) {
|
||||
$("#msg").html(e);
|
||||
|
||||
Reference in New Issue
Block a user