Skip to content

Instantly share code, notes, and snippets.

@BenFausch
Last active October 30, 2018 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenFausch/a3ea965c8e0b2e13be23c86b8ccca63f to your computer and use it in GitHub Desktop.
Save BenFausch/a3ea965c8e0b2e13be23c86b8ccca63f to your computer and use it in GitHub Desktop.
Sailthru Ad Banner Scheduler
//This script in the console will check all visible boxes dependent on Zone name (or any other td text)
//You will have to uncheck and check 1 box to trigger the ST logic
jQuery('td').each(function() {
if (jQuery(this).text() === 'Banner') {
jQuery(this).siblings('td').each(function() {
console.log('t', jQuery(this).children())
if (jQuery(this).children().is('input')) {
console.log(this + 'is input')
jQuery(this).children().attr('checked', true)
}
})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment