X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/9ed73579aefba12ff191afc09766108bee783015..acc39fd2f0eaf516dbb534232ed5f631c269886b:/edit/page.js diff --git a/edit/page.js b/edit/page.js index e40b376..45f0104 100644 --- a/edit/page.js +++ b/edit/page.js @@ -22,10 +22,19 @@ CKEDITOR.plugins.add('inlinesave', { ajaxpost.onreadystatechange = function () { if (ajaxpost.readyState != 4) return; // not done yet - if (ajaxpost.status != 200) - alert('Foutcode '+ajaxpost.status+' bij opslaan: '+ajaxpost.responseText); - else + if (ajaxpost.status == 200) { editor.resetDirty(); + new CKEDITOR.plugins.notification(editor, { + message: 'Pagina is succesvol opgeslagen', + type: 'success', + }).show(); + } + else { + new CKEDITOR.plugins.notification(editor, { + message: 'Foutcode '+ajaxpost.status+' bij opslaan: '+ajaxpost.responseText, + type: 'warning', + }).show(); + } }; ajaxpost.send(data); }, @@ -49,9 +58,8 @@ CKEDITOR.on('dialogDefinition', function (event) { infoTab.get('txtCellPad').default = ''; break; case 'link': - // remove unneeded widgets from the Link Info tab + //TODO: remove unneeded widgets from the Link Info tab var infotab = event.data.definition.getContents('info'); - infotab.remove('linkType'); break; } });