diff options
author | alecpl <alec@alec.pl> | 2009-04-27 07:36:26 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-04-27 07:36:26 +0000 |
commit | 29da6414db77512106250b9832a0b4a0168bd7eb (patch) | |
tree | d3f36001953d24292166ef3ab1b62e87b3b89cf6 /program/js/tiny_mce/plugins/table/js/cell.js | |
parent | 1fb5874f276e9ce7731e8f166b19a371ce33b894 (diff) |
- Updated TinyMCE to 3.2.3 version
Diffstat (limited to 'program/js/tiny_mce/plugins/table/js/cell.js')
-rw-r--r-- | program/js/tiny_mce/plugins/table/js/cell.js | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/program/js/tiny_mce/plugins/table/js/cell.js b/program/js/tiny_mce/plugins/table/js/cell.js index 7d7f977fa..f23b06751 100644 --- a/program/js/tiny_mce/plugins/table/js/cell.js +++ b/program/js/tiny_mce/plugins/table/js/cell.js @@ -73,14 +73,24 @@ function updateAction() { var celltype = getSelectValue(formObj, 'celltype');
var scope = getSelectValue(formObj, 'scope');
- if (ed.getParam("accessibility_warnings")) {
+ function doUpdate(s) {
+ if (s) {
+ updateCell(tdElm);
+
+ ed.addVisual();
+ ed.nodeChanged();
+ inst.execCommand('mceEndUndoLevel');
+ tinyMCEPopup.close();
+ }
+ };
+
+ if (ed.getParam("accessibility_warnings", 1)) {
if (celltype == "th" && scope == "")
- var answer = confirm(ed.getLang('table_dlg.missing_scope', '', true));
+ tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate);
else
- var answer = true;
+ doUpdate(1);
- if (!answer)
- return;
+ return;
}
updateCell(tdElm);
|