Mercurial > hg > AnnotationManager
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:c32080f364c6 | 5:0be9d53a6967 |
---|---|
1 tinyMCEPopup.requireLangPack(); | |
2 | |
3 var MergeCellsDialog = { | |
4 init : function() { | |
5 var f = document.forms[0]; | |
6 | |
7 f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1); | |
8 f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1); | |
9 }, | |
10 | |
11 merge : function() { | |
12 var func, f = document.forms[0]; | |
13 | |
14 tinyMCEPopup.restoreSelection(); | |
15 | |
16 func = tinyMCEPopup.getWindowArg('onaction'); | |
17 | |
18 func({ | |
19 cols : f.numcols.value, | |
20 rows : f.numrows.value | |
21 }); | |
22 | |
23 tinyMCEPopup.close(); | |
24 } | |
25 }; | |
26 | |
27 tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog); |