function BuildFun(obj) {
var version_value = $(obj).attr("version_value");;
var game_name = $(obj).attr("game_name");
var groupname = $(obj).attr("groupname");
var action_id = $(obj).attr("action_id");
$("-sharpmyModalLabel").html("");
$("-sharpmodal_userId").html(": " + groupname + " " + game_name + "" + version_value + " ?");
$("-sharpmyModal").modal("show");
$("-sharpmodal_user").click(function () {
alert(action_id);
$.ajax({
data: {
"action_id": action_id,
"version_value": version_value,
csrfmiddlewaretoken: "{{ csrf_token }}"
},
type: "POST",
url: "/pro1/startbuild/" + action_id + "/",
success: function (data) {
var logurl = data.logurl
if (data.status == "success") {
$("-sharpmodal_userId").html("" + groupname + " " + game_name + "" + version_value + " ");
$("-sharpmodal_user").hide();
$("-sharpmyModal").modal("show");
setTimeout(5000);
location.reload();
}
},
})
});
Click close how to clear the original value?