APICHANGE: tidy up NewsletterAdmin.

BUGFIX: a lot of methods in this class now passed $params as HTTPRequest object, rather than as a array if the function is called from Ajax or top-level of front-end, some method is called in both manner, ie. called from Ajax and called internally as well, so we need to check $params type and do further process. This is a partial fix of open source ticket #3035

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65554 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Normann Lou 2008-11-10 22:23:48 +00:00
parent d03e189f63
commit 76afea41bc
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ CMSForm.prototype = {
*
* @param publish boolean (optional) whether to publish in addition to saving
*/
save: function(ifChanged, callAfter, action, publish) {
save: function(ifChanged, callAfter, action, publish) {console.log(this.action);
_AJAX_LOADING = true;
// Note: TinyMCE coupling
if(typeof tinyMCE != 'undefined') tinyMCE.triggerSave();
@ -195,6 +195,7 @@ CMSForm.prototype = {
}
statusMessage(ss.i18n._t('CMSMAIN.SAVING'), null, true);
console.log(this.action+"?"+data);
new Ajax.Request(this.action, {
method : this.method,
postBody: data,

View File

@ -23,7 +23,6 @@
<input type="submit" value="<% _t('SUBMIT','Submit for approval') %>" />
</p>
</form>
<% if EditForm %>
$EditForm
<% else %>