You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
668 B
CoffeeScript
36 lines
668 B
CoffeeScript
require "./lib/upload"
|
|
require "./lib/embed"
|
|
require "./lib/donate"
|
|
require "./lib/form-popup"
|
|
|
|
$ = require "jquery"
|
|
autosize = require "autosize"
|
|
marked = require "marked"
|
|
scrollFloat = require "./lib/scroll-float"
|
|
|
|
$ ->
|
|
$(".checkAll").on "change", (event) ->
|
|
newValue = $(this).prop("checked")
|
|
|
|
$(this)
|
|
.closest "table"
|
|
.find "input[type='checkbox']"
|
|
.filter ->
|
|
return !$(this).hasClass "checkAll"
|
|
.prop "checked", newValue
|
|
|
|
scrollFloat($(".floating"))
|
|
|
|
autosize($(".md-editor"))
|
|
|
|
updatePreview = ->
|
|
$(".md-preview").html(marked($(this).val()))
|
|
|
|
$(".md-editor")
|
|
.on "change input propertychange", updatePreview
|
|
.each updatePreview
|
|
|
|
|
|
|
|
|