Updated manifest to exclude chrome styles and added animation to option alert.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
global.jQuery = require('jquery');
|
||||
require('bootstrap');
|
||||
|
||||
var $ = require('jquery');
|
||||
|
||||
// Saves options to chrome.storage.sync.
|
||||
function save_options(e) {
|
||||
e.preventDefault();
|
||||
@@ -18,16 +20,16 @@ function save_options(e) {
|
||||
blacklist: blacklist
|
||||
}, function () {
|
||||
// Update status to let user know options were saved.
|
||||
var status = document.getElementById('status');
|
||||
status.style.display = 'block';
|
||||
status.innerHTML = '<strong>Well done!</strong> Options have been saved.';
|
||||
var status = $('#status');
|
||||
status.html('<strong>Well done!</strong> Options have been saved.');
|
||||
|
||||
//TODO: This is a nice place for fade in and fade out...
|
||||
|
||||
setTimeout(function () {
|
||||
status.textContent = '';
|
||||
status.style.display = 'none';
|
||||
}, 1500);
|
||||
status.fadeIn(1500, function () {
|
||||
setTimeout(function () {
|
||||
status.fadeOut(1500, function () {
|
||||
status.html('');
|
||||
});
|
||||
}, 750);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user