: |
-
-
+
diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css
index bf4e35de59..11bf1ffba1 100644
--- a/wp-admin/wp-admin.css
+++ b/wp-admin/wp-admin.css
@@ -297,6 +297,19 @@ form#upload #post_content {
text-align: right;
}
+.optiontable {
+ width: 100%;
+}
+
+.optiontable td, .optiontable th {
+ padding: .5em;
+}
+
+.optiontable th {
+ width: 33%;
+ text-align: right;
+}
+
.unapproved {
color: #888;
}
@@ -902,3 +915,28 @@ a.dbx-toggle, a.dbx-toggle:visited {
-khtml-opacity: 0.8;
filter: alpha(opacity=80);
}
+
+#newcat { width: 120px; margin-right: 5px; }
+input#catadd { background: #a4a4a4;
+ border-bottom: 1px solid #898989;
+ border-left: 1px solid #bcbcbc;
+ border-right: 1px solid #898989;
+ border-top: 1px solid #bcbcbc;
+ color: #fff;
+ font-size: 10px;
+ padding: 0;
+ margin: 0;
+ font-weight: bold;
+ height: 20px;
+ margin-bottom: 2px;
+ text-align: center;
+ width: 37px; }
+#howto {
+ font-size: 11px;
+ margin: 0 5px;
+ display: block;
+}
+#jaxcat {
+ margin: 0;
+ padding: 0;
+}
\ No newline at end of file
diff --git a/wp-admin/xfn.js b/wp-admin/xfn.js
new file mode 100644
index 0000000000..54c82fbf22
--- /dev/null
+++ b/wp-admin/xfn.js
@@ -0,0 +1,46 @@
+function GetElementsWithClassName(elementName, className) {
+ var allElements = document.getElementsByTagName(elementName);
+ var elemColl = new Array();
+ for (i = 0; i < allElements.length; i++) {
+ if (allElements[i].className == className) {
+ elemColl[elemColl.length] = allElements[i];
+ }
+ }
+ return elemColl;
+}
+
+function meChecked() {
+ var undefined;
+ var eMe = document.getElementById('me');
+ if (eMe == undefined) return false;
+ else return eMe.checked;
+}
+
+function upit() {
+ var isMe = meChecked(); //document.getElementById('me').checked;
+ var inputColl = GetElementsWithClassName('input', 'valinp');
+ var results = document.getElementById('link_rel');
+ var linkText, linkUrl, inputs = '';
+ for (i = 0; i < inputColl.length; i++) {
+ inputColl[i].disabled = isMe;
+ inputColl[i].parentNode.className = isMe ? 'disabled' : '';
+ if (!isMe && inputColl[i].checked && inputColl[i].value != '') {
+ inputs += inputColl[i].value + ' ';
+ }
+ }
+ inputs = inputs.substr(0,inputs.length - 1);
+ if (isMe) inputs='me';
+ results.value = inputs;
+ }
+
+function blurry() {
+ if (!document.getElementById) return;
+
+ var aInputs = document.getElementsByTagName('input');
+
+ for (var i = 0; i < aInputs.length; i++) {
+ aInputs[i].onclick = aInputs[i].onkeyup = upit;
+ }
+}
+
+addLoadEvent(blurry);
\ No newline at end of file
|
---|