includes/clientside/tinymce/plugins/table/js/table.js
changeset 588 20484deb89cd
parent 543 dffcbfbc4e59
child 778 57ce13805b6f
equal deleted inserted replaced
587:705ed7162315 588:20484deb89cd
    44 	rowLimit = tinyMCEPopup.getParam('table_row_limit', false);
    44 	rowLimit = tinyMCEPopup.getParam('table_row_limit', false);
    45 	colLimit = tinyMCEPopup.getParam('table_col_limit', false);
    45 	colLimit = tinyMCEPopup.getParam('table_col_limit', false);
    46 
    46 
    47 	// Validate table size
    47 	// Validate table size
    48 	if (colLimit && cols > colLimit) {
    48 	if (colLimit && cols > colLimit) {
    49 		alert(inst.getLang('table_col_limit', '', true, {cols : colLimit}));
    49 		inst.windowManager.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g, colLimit));
    50 		return false;
    50 		return false;
    51 	} else if (rowLimit && rows > rowLimit) {
    51 	} else if (rowLimit && rows > rowLimit) {
    52 		alert(inst.getLang('table_row_limit', '', true, {rows : rowLimit}));
    52 		inst.windowManager.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g, rowLimit));
    53 		return false;
    53 		return false;
    54 	} else if (cellLimit && cols * rows > cellLimit) {
    54 	} else if (cellLimit && cols * rows > cellLimit) {
    55 		alert(inst.getLang('table_cell_limit', '', true, {cells : cellLimit}));
    55 		inst.windowManager.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g, cellLimit));
    56 		return false;
    56 		return false;
    57 	}
    57 	}
    58 
    58 
    59 	// Update table
    59 	// Update table
    60 	if (action == "update") {
    60 	if (action == "update") {