~vcs-imports/almidon/trunk

« back to all changes in this revision

Viewing changes to core/pub/js/tiny_mce/plugins/table/js/merge_cells.js

  • Committer: christian
  • Date: 2010-09-11 20:55:52 UTC
  • Revision ID: svn-v4:924a4236-293c-0410-b38f-c0813de1d4fd:trunk:381
Change name to pub directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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);