Skip to content

Commit

Permalink
Disable buttons when clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ch4ls committed Sep 16, 2015
1 parent 35919e1 commit dfca63b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ <h1>Refbox</h1>

function updateLoadedStyles() {
$('#loaded-styles').empty();
$('.css-select').prop('disabled', false);
$('link[rel="stylesheet"]').each(function () {
$('#loaded-styles').append($(this).attr('href') + '\n');
});
Expand Down Expand Up @@ -218,6 +219,7 @@ <h1>Refbox</h1>
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);
});
});
Expand Down

0 comments on commit dfca63b

Please sign in to comment.