equal
deleted
inserted
replaced
71 switch (getSelectValue(formObj, 'action')) { |
71 switch (getSelectValue(formObj, 'action')) { |
72 case "cell": |
72 case "cell": |
73 var celltype = getSelectValue(formObj, 'celltype'); |
73 var celltype = getSelectValue(formObj, 'celltype'); |
74 var scope = getSelectValue(formObj, 'scope'); |
74 var scope = getSelectValue(formObj, 'scope'); |
75 |
75 |
76 if (ed.getParam("accessibility_warnings")) { |
76 function doUpdate(s) { |
|
77 if (s) { |
|
78 updateCell(tdElm); |
|
79 |
|
80 ed.addVisual(); |
|
81 ed.nodeChanged(); |
|
82 inst.execCommand('mceEndUndoLevel'); |
|
83 tinyMCEPopup.close(); |
|
84 } |
|
85 }; |
|
86 |
|
87 if (ed.getParam("accessibility_warnings", 1)) { |
77 if (celltype == "th" && scope == "") |
88 if (celltype == "th" && scope == "") |
78 var answer = confirm(ed.getLang('table_dlg.missing_scope', '', true)); |
89 tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate); |
79 else |
90 else |
80 var answer = true; |
91 doUpdate(1); |
81 |
92 |
82 if (!answer) |
93 return; |
83 return; |
|
84 } |
94 } |
85 |
95 |
86 updateCell(tdElm); |
96 updateCell(tdElm); |
87 break; |
97 break; |
88 |
98 |