annotate WebContent/jscripts/tiny_mce/plugins/table/js/merge_cells.js @ 5:0be9d53a6967

editor for annotations
author dwinter
date Tue, 13 Dec 2011 17:43:46 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
1 tinyMCEPopup.requireLangPack();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
2
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
3 var MergeCellsDialog = {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
4 init : function() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
5 var f = document.forms[0];
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
6
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
7 f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1);
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
8 f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1);
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
9 },
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
10
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
11 merge : function() {
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
12 var func, f = document.forms[0];
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
13
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
14 tinyMCEPopup.restoreSelection();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
15
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
16 func = tinyMCEPopup.getWindowArg('onaction');
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
17
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
18 func({
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
19 cols : f.numcols.value,
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
20 rows : f.numrows.value
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
21 });
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
22
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
23 tinyMCEPopup.close();
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
24 }
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
25 };
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
26
0be9d53a6967 editor for annotations
dwinter
parents:
diff changeset
27 tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog);