moved selection fn to forum script
This commit is contained in:
parent
d285cf7283
commit
f8fc97f88b
@ -68,20 +68,4 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function selection(type, value)
|
|
||||||
{
|
|
||||||
return new Promise(function(resolve)
|
|
||||||
{
|
|
||||||
$.ajax
|
|
||||||
({
|
|
||||||
url: "./res/forum/admin/" + type + "_selection.html",
|
|
||||||
dataType: "html",
|
|
||||||
success: function(result)
|
|
||||||
{
|
|
||||||
resolve(result.replace("value=\"" + value, "selected value=\"" + value));
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
@ -15,6 +15,22 @@ function show(file)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function selection(type, value)
|
||||||
|
{
|
||||||
|
return new Promise(function(resolve)
|
||||||
|
{
|
||||||
|
$.ajax
|
||||||
|
({
|
||||||
|
url: "./res/forum/admin/" + type + "_selection.html",
|
||||||
|
dataType: "html",
|
||||||
|
success: function(result)
|
||||||
|
{
|
||||||
|
resolve(result.replace("value=\"" + value, "selected value=\"" + value));
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function inject_info(id, username, postfix)
|
function inject_info(id, username, postfix)
|
||||||
{
|
{
|
||||||
$.ajax
|
$.ajax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user