You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
777 B

  1. $(function() {
  2. $(".edit-checks").click(function() {
  3. $("#checks-modal").modal("show");
  4. $.ajax(this.dataset.url).done(function(data) {
  5. $("#checks-modal .modal-content").html(data);
  6. })
  7. return false;
  8. });
  9. var $cm = $("#checks-modal");
  10. $cm.on("click", "#toggle-all", function() {
  11. var value = $(this).prop("checked");
  12. $cm.find(".toggle").prop("checked", value);
  13. });
  14. $(".channel-remove").click(function() {
  15. var $this = $(this);
  16. $("#remove-channel-form").attr("action", $this.data("url"));
  17. $(".remove-channel-kind").text($this.data("kind"));
  18. $('#remove-channel-modal').modal("show");
  19. return false;
  20. });
  21. $('[data-toggle="tooltip"]').tooltip();
  22. });