Skip to content

Commit

Permalink
[e] (0) Add 'close' button to updates notification.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2028 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 6, 2008
1 parent fb797a5 commit ebc906a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion header-whatwg
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,15 @@
var a = document.createElement('a');
a.href = '';
a.onclick = function () { location.reload(); return false; };
a.textContent = "Reload...";
a.textContent = "Reload";
status.appendChild(a);
var x = document.createElement('a');
status.appendChild(document.createTextNode('. '));
x.href = '';
x.onclick = function () { status.className = ''; return false; };
x.textContent = "Close";
status.appendChild(x);
status.appendChild(document.createTextNode('. '));
status.className = 'relevant';
});
}
Expand Down
9 changes: 8 additions & 1 deletion index
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,15 @@
var a = document.createElement('a');
a.href = '';
a.onclick = function () { location.reload(); return false; };
a.textContent = "Reload...";
a.textContent = "Reload";
status.appendChild(a);
var x = document.createElement('a');
status.appendChild(document.createTextNode('. '));
x.href = '';
x.onclick = function () { status.className = ''; return false; };
x.textContent = "Close";
status.appendChild(x);
status.appendChild(document.createTextNode('. '));
status.className = 'relevant';
});
}
Expand Down

0 comments on commit ebc906a

Please sign in to comment.