PageRenderTime 29ms CodeModel.GetById 23ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/editors/tiny_mce_3_4_3_1/plugins/table/js/merge_cells.js

#
JavaScript | 27 lines | 19 code | 8 blank | 0 comment | 0 complexity | 3650484c93d6c9a197d03a5c3c3d2e80 MD5 | raw file
 1tinyMCEPopup.requireLangPack();
 2
 3var 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
27tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog);