Add editors for CSS and JS
This commit is contained in:
parent
b3cb87aab6
commit
a8d8f346d4
11 changed files with 144 additions and 5 deletions
|
|
@ -413,6 +413,36 @@ $("#show_motdeditor").click(function() {
|
|||
$("#motdeditor").show();
|
||||
});
|
||||
|
||||
$("#show_csseditor").click(function() {
|
||||
$("#modnav li").each(function() {
|
||||
$(this).removeClass("active");
|
||||
});
|
||||
$(".modonly").hide();
|
||||
$("#show_csseditor").parent().addClass("active");
|
||||
$("#csseditor").show();
|
||||
});
|
||||
|
||||
$("#updatecss").click(function() {
|
||||
socket.emit("setChannelCSS", {
|
||||
css: $("#csstext").val()
|
||||
});
|
||||
});
|
||||
|
||||
$("#show_jseditor").click(function() {
|
||||
$("#modnav li").each(function() {
|
||||
$(this).removeClass("active");
|
||||
});
|
||||
$(".modonly").hide();
|
||||
$("#show_jseditor").parent().addClass("active");
|
||||
$("#jseditor").show();
|
||||
});
|
||||
|
||||
$("#updatejs").click(function() {
|
||||
socket.emit("setChannelJS", {
|
||||
js: $("#jstext").val()
|
||||
});
|
||||
});
|
||||
|
||||
$("#show_filtereditor").click(function() {
|
||||
if(RANK >= Rank.Owner) {
|
||||
$("#modnav li").each(function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue