Skip to content

Commit b40ea9b

Browse files
committed
Add notice to tell people to refresh after save.
This is the most common reason for settings to not work
1 parent 74add4e commit b40ea9b

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

src/options/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
<div class="wrapper">
1212
<div id="options"></div>
13+
<div class="notice">Make sure you refresh both the extensions page (chrome://extensions/) and the gmail tab after updating the settings.</div>
1314
<button id="save">Save</button>
1415
</div>
1516

1617
</body>
1718

18-
</html>
19+
</html>

src/options/options.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ body, * {
1818
border: 1px solid #e0e0e0;
1919
}
2020

21+
.notice {
22+
display: none;
23+
background: #ffeeee;
24+
border-top: 1px solid #fcc;
25+
border-bottom: 1px solid #fcc;
26+
color: #a00;
27+
padding: 20px;
28+
margin: -1px -20px 0;
29+
font-weight: bold;
30+
}
31+
2132
.option {
2233
margin: 0 -20px 0;
2334
padding: 20px;
@@ -27,7 +38,6 @@ body, * {
2738

2839
.option:last-child {
2940
border-bottom: 1px solid #e0e0e0;
30-
margin-bottom: 20px;
3141
}
3242

3343
.option:nth-child(even) {
@@ -74,7 +84,7 @@ button {
7484
text-transform: uppercase;
7585
box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1);
7686
transition: all .6s;
77-
margin-bottom: 20px;
87+
margin: 20px 0;
7888
}
7989

8090
button:active {

src/options/options.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ $(document).on('click', '#save', function() {
4949

5050
// Update status to let user know options were saved.
5151
var save = document.getElementById('save')
52+
$('.notice').show()
53+
window.scrollTo(0, 10000)
5254
save.innerHTML = 'Updated!'
5355
$(fields).closest('.option').removeClass('saved').addClass('saved')
5456
setTimeout(function() {

0 commit comments

Comments
 (0)