Skip to content

Instantly share code, notes, and snippets.

@MikePearce
Created July 12, 2010 09:39
Show Gist options
  • Save MikePearce/472305 to your computer and use it in GitHub Desktop.
Save MikePearce/472305 to your computer and use it in GitHub Desktop.
$('.addSourceMode').click(function() {
// Dupe the srcMode and append
srcModeT = $('.sourceModeTemplate').clone();
srcModeT.removeClass('sourceModeTemplate');
srcModeT.show();
// No LiveQuery Here! When this is changed, change the srcmode!
srcModeT.children('.srcModeSelector').change(function() {
doSrcModeMagic($(this));
});
channel = $(this).attr('id').split('_');
console.log(channel[1]);
$('.srcModeContainer'+channel[1]).append('<br />').append(srcModeT);
return false;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment