| | |
| | | var celltype = getSelectValue(formObj, 'celltype');
|
| | | var scope = getSelectValue(formObj, 'scope');
|
| | |
|
| | | if (ed.getParam("accessibility_warnings")) {
|
| | | if (celltype == "th" && scope == "")
|
| | | var answer = confirm(ed.getLang('table_dlg.missing_scope', '', true));
|
| | | else
|
| | | var answer = true;
|
| | | function doUpdate(s) {
|
| | | if (s) {
|
| | | updateCell(tdElm);
|
| | |
|
| | | if (!answer)
|
| | | return;
|
| | | ed.addVisual();
|
| | | ed.nodeChanged();
|
| | | inst.execCommand('mceEndUndoLevel');
|
| | | tinyMCEPopup.close();
|
| | | }
|
| | | };
|
| | |
|
| | | if (ed.getParam("accessibility_warnings", 1)) {
|
| | | if (celltype == "th" && scope == "")
|
| | | tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate);
|
| | | else
|
| | | doUpdate(1);
|
| | |
|
| | | return;
|
| | | }
|
| | |
|
| | | updateCell(tdElm);
|