Index: misc/vertical-tabs.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/vertical-tabs.js,v
retrieving revision 1.4
diff -u -p -r1.4 vertical-tabs.js
--- misc/vertical-tabs.js 27 Apr 2009 20:19:35 -0000 1.4
+++ misc/vertical-tabs.js 25 May 2009 10:50:35 -0000
@@ -20,7 +20,7 @@ Drupal.behaviors.verticalTabs = {
var focus;
// Create the tab column.
var list = $('
');
- $(this).wrap('').before(list);
+ $(this).wrap('').before(list);
// Transform each fieldset into a tab.
$('> fieldset', this).each(function () {
Index: modules/node/node.css
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.css,v
retrieving revision 1.7
diff -u -p -r1.7 node.css
--- modules/node/node.css 30 Mar 2009 03:15:40 -0000 1.7
+++ modules/node/node.css 25 May 2009 10:50:35 -0000
@@ -43,3 +43,21 @@ td.revision-current {
display: inline;
}
+#node-form-components-menu {
+ float: right;
+ width: 20%;
+ text-align: right;
+}
+#node-form .node-form {
+ float: left;
+ width: 80%;
+}
+#node-form-buttons {
+ margin-top: 0.5em;
+ float: right;
+}
+#node-form-buttons input {
+ display: block;
+ margin: 0.5em 0;
+ width: 120px;
+}
Index: modules/node/node.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/node/node.js,v
retrieving revision 1.4
diff -u -p -r1.4 node.js
--- modules/node/node.js 27 Apr 2009 20:19:37 -0000 1.4
+++ modules/node/node.js 25 May 2009 10:50:35 -0000
@@ -32,4 +32,32 @@ Drupal.behaviors.nodeFieldsetSummaries =
}
};
+Drupal.behaviors.nodeEditMeta = {
+ attach: function (context) {
+
+ // Add node components menu area for content/meta links and buttons.
+ $('#node-form .node-form').before('');
+
+ // Move buttons to the form components menu area.
+ $('#node-form-components-menu #node-form-buttons').append($('#node-form .form-submit'));
+
+ // Add click functionality to show and hide meta elements.
+ $('#node-form-components-menu a').click(function() {
+ switch ($(this).attr('id')) {
+ case 'show-node-content-edit':
+ // TODO: swap to content editing items.
+ break;
+ case 'show-node-meta-edit':
+ // TODO: swap to meta editing items.
+ break;
+ }
+ // Avoid default click action to fire.
+ return false;
+ });
+
+ // Hide the meta elements by default.
+ $('.form-meta-element').hide();
+ }
+};
+
})(jQuery);