From 1cae0a7fd33658ae0c4e1c9fe503c3bae20308db Mon Sep 17 00:00:00 2001 From: cat Date: Tue, 13 Oct 2015 15:59:53 +0200 Subject: [PATCH] LSP - trigger deletion with the rest of config --- lsp/minified.js | 6 +++--- lsp/mist.js | 7 +------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lsp/minified.js b/lsp/minified.js index 6e6d3a0e..eec0ed20 100644 --- a/lsp/minified.js +++ b/lsp/minified.js @@ -122,9 +122,9 @@ UI.buildUI([b]);c.replaceWith(a.children())}},{type:"buttons",buttons:[{type:"ca [];mist.data.config.limits.push(n);a={config:{limits:mist.data.config.limits}};break;case "stream":if(typeof mist.data.streams[b[1]].limits=="undefined")mist.data.streams[b[1]].limits=[];mist.data.streams[b[1]].limits.push(n);if(mist.data.LTS){a={addstream:{}};a.addstream[b[1]]=mist.data.streams[b[1]]}else a={streams:mist.data.streams}}}mist.send(function(){UI.navto(UI.returnTab[0],UI.returnTab[1])},a)}}]}]),u=UI.buildUI(i);b.append(u);u.find(".limit_type").closest("label").after(u.find(".limit_value").closest("label")); u.find(".limit_type").trigger("change");break;case "Triggers":"triggers"in mist.data.config||(mist.data.config.triggers={});g=$("");q=$("").html($("").html($("").html($("").attr("data-index",r+","+w).append($("
").text("Trigger on").attr("data-sort-type","string").addClass("sorting-asc")).append($("").text("Applies to").attr("data-sort-type","string")).append($("").text("Handler").attr("data-sort-type","string")).append($("")))).append(g);b.append(UI.buildUI([{type:"help",help:"Triggers are the system you can use to react to events that occur inside MistServer. These allow you to block specific users, redirect streams, keep tabs on what is being pushed where, etcetera. For full documentation, please refer to the developer documentation section on the MistServer website."}])).append($("
").text(r)).append($("").text(i[r][w][2].join(", "))).append($("").text(i[r][w][0])).append($("").html($("