auto-apply slides tag to speakerdeck.com

This commit is contained in:
joshua stein 2014-03-12 18:32:03 -05:00
parent af24e4e388
commit ed71fd8d61

View file

@ -338,7 +338,7 @@ $(document).ready(function() {
ta.addSelectedChoice({ id: "video" });
}
/* if the url looks like a slide sharing site url, assign the slides tag */
else if ($("#story_url").val().match(/[\/\.](slideshare\.net)\//i)) {
else if ($("#story_url").val().match(/[\/\.](slideshare\.net|speakerdeck\.com)\//i)) {
var ta = $("#story_tags_a").data("select2");
if (ta.getVal().indexOf("slides") < 0)
ta.addSelectedChoice({ id: "slides" });