From dfca63be00258b88c0a90c4bfbd7fbcc97f3661f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Sedl=C3=A1k?= Date: Wed, 16 Sep 2015 12:06:11 +0200 Subject: [PATCH] Disable buttons when clicked --- src/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.html b/src/index.html index a61e148..043413d 100644 --- a/src/index.html +++ b/src/index.html @@ -151,6 +151,7 @@

Refbox

function updateLoadedStyles() { $('#loaded-styles').empty(); + $('.css-select').prop('disabled', false); $('link[rel="stylesheet"]').each(function () { $('#loaded-styles').append($(this).attr('href') + '\n'); }); @@ -218,6 +219,7 @@

Refbox

Array.prototype.slice.call(document.querySelectorAll('.css-select')).forEach(function(elm) { var value = elm.getAttribute('value'); elm.addEventListener('click', function() { + $('.css-select').prop('disabled', true); injectStylesheets(value); }); });