-
-
Save prendo/7d3940ba118b9012a7b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2013 Zachary Doll */ | |
jQuery(document).ready(function($) { | |
}); | |
// Get the wanted information from some definitions and return false if they don't exist | |
var Title = gdn.definition('TG_DiscussionTitle', false); | |
var Tag = gdn.definition('TG_DiscussionTag', false); | |
// If the title or tag is missing we don't want to pre-populate | |
if(!Title || !Tag) { | |
return; | |
} | |
else { | |
// We want to preset the values | |
$('#Form_Name').val(Title); | |
$('#Form_Tags').val(Tag); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment