r1752 - branches/bxe_2_0/js
[email protected] Thu, 13 Sep 2007 16:17:45 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Thu Sep 13 16:17:44 2007
New Revision: 1752
Log:
fix BXEB-40
Table Cells: Move left/right und up/down
Modified:
branches/bxe_2_0/js/bxeFunctions.js
Modified: branches/bxe_2_0/js/bxeFunctions.js
==============================================================================
--- branches/bxe_2_0/js/bxeFunctions.js (original)
+++ branches/bxe_2_0/js/bxeFunctions.js Thu Sep 13 16:17:44 2007
@@ -838,13 +838,17 @@
}
if (previousSibling) {
- popup.addMenuItem(bxe_i18n.getText("Move up"), function (e) {
+ var _t = "Move up";
+ if (node.vdom.bxeTabletype == "table-cell" || node.vdom.bxeTabletype == "table-col") {
+ var _t = "Move cell left";
+ }
+ popup.addMenuItem(bxe_i18n.getText(_t), function (e) {
var widget = e.currentTarget.Widget;
var appNode = widget.MenuPopup.MainNode;
bxe_moveUp(appNode);
});
if (previousSibling.vdom.bxeTabletype == "table-cell" || previousSibling.vdom.bxeTabletype == "table-col" ) {
- var menui = popup.addMenuItem(bxe_i18n.getText("Move left"), function(e) {
+ var menui = popup.addMenuItem(bxe_i18n.getText("Move column left"), function(e) {
var widget = e.currentTarget.Widget;
var _par = widget.MenuPopup.MainNode._node.parentNode;
widget.MenuPopup.MainNode._node.TableCellMoveLeft();
@@ -858,13 +862,18 @@
nextSibling = nextSibling.nextSibling;
}
if (nextSibling) {
- popup.addMenuItem(bxe_i18n.getText("Move down"), function (e) {
+ var _t = "Move down";
+ if (node.vdom.bxeTabletype == "table-cell" || node.vdom.bxeTabletype == "table-col") {
+ var _t = "Move cell right";
+ }
+
+ popup.addMenuItem(bxe_i18n.getText(_t), function (e) {
var widget = e.currentTarget.Widget;
var appNode = widget.MenuPopup.MainNode;
bxe_moveDown(appNode);
});
if (nextSibling.vdom && (nextSibling.vdom.bxeTabletype == "table-cell" || nextSibling.vdom.bxeTabletype == "table-col" )) {
- var menui = popup.addMenuItem(bxe_i18n.getText("Move right"), function(e) {
+ var menui = popup.addMenuItem(bxe_i18n.getText("Move column right"), function(e) {
var widget = e.currentTarget.Widget;
var _par = widget.MenuPopup.MainNode._node.parentNode;
widget.MenuPopup.MainNode._node.TableCellMoveRight();
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs