alecpl
2009-07-22 f134ad8c4cc6ec06da7cd63ebc1eb9a767c0fb65
program/js/tiny_mce/plugins/table/js/cell.js
@@ -73,14 +73,24 @@
         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);