[html5] r2028 - [e] (0) Add 'close' button to updates notification.
whatwg at whatwg.org
whatwg at whatwg.org
Wed Aug 6 12:30:35 PDT 2008
Author: ianh
Date: 2008-08-06 12:30:35 -0700 (Wed, 06 Aug 2008)
New Revision: 2028
Modified:
header-whatwg
index
Log:
[e] (0) Add 'close' button to updates notification.
Modified: header-whatwg
===================================================================
--- header-whatwg 2008-08-06 19:24:45 UTC (rev 2027)
+++ header-whatwg 2008-08-06 19:30:35 UTC (rev 2028)
@@ -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';
});
}
Modified: index
===================================================================
--- index 2008-08-06 19:24:45 UTC (rev 2027)
+++ index 2008-08-06 19:30:35 UTC (rev 2028)
@@ -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';
});
}
More information about the Commit-Watchers
mailing list