Damage control pass 2

This commit is contained in:
Daniel Scalzi
2017-05-17 05:03:09 -04:00
parent 75af2726db
commit c83809b0dc
7 changed files with 536 additions and 146 deletions

View File

@@ -3,6 +3,17 @@ const remote = require('electron').remote
const shell = require('electron').shell
const path = require('path')
$(document).on('ready', function(){
$(".toggle-btn input[type=radio]").addClass("visuallyhidden");
$(".toggle-btn input[type=radio]").change(function() {
if($(this).attr("name")) {
$(this).parent().addClass("success").siblings().removeClass("success")
} else {
$(this).parent().toggleClass("success")
}
})
})
/* Open web links in the user's default browser. */
$(document).on('click', 'a[href^="http"]', function(event) {
event.preventDefault();