mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@43881 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5966b2c0d6
commit
499a951b69
@ -30,7 +30,7 @@ ThumbnailStripField.prototype = {
|
||||
ajaxGetFiles: function(folderID,callback) {
|
||||
if(!callback) callback = this.reapplyBehaviour.bind(this);
|
||||
this.innerHTML = '<span style="float: left">Loading...</span>'
|
||||
var ajaxURL = this.helperURLBase() + '&methodName='+this.updateMethod+'&folderID=' + folderID;
|
||||
var ajaxURL = this.helperURLBase() + '&methodName='+this.updateMethod+'&folderID=' + folderID + ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : '');
|
||||
new Ajax.Updater(this, ajaxURL, {
|
||||
method : 'get',
|
||||
onComplete : callback,
|
||||
@ -45,7 +45,7 @@ ThumbnailStripField.prototype = {
|
||||
helperURLBase: function() {
|
||||
var fieldName = this.id; //this.id.replace(this.ownerForm().name + '_','');
|
||||
|
||||
return this.ownerForm().action + '&action_callfieldmethod=1&fieldName=' + fieldName + '&ajax=1'
|
||||
return this.ownerForm().action + '&action_callfieldmethod=1&fieldName=' + fieldName + '&ajax=1' + ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : '');
|
||||
},
|
||||
|
||||
ownerForm: function() {
|
||||
|
@ -78,7 +78,7 @@ TinyMCEImageEnhancement.prototype = {
|
||||
var folderName = $('NewFolderName').value;
|
||||
var options = {
|
||||
method: 'post',
|
||||
postBody: 'ParentID=' + this.getParentID() + '&ajax=1' ,
|
||||
postBody: 'ParentID=' + this.getParentID() + '&ajax=1' + ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : ''),
|
||||
onSuccess: this.onFolderGetSuccess.bind(this),
|
||||
onFailure: function(transport) {
|
||||
errorMessage('Error: Folder not added', transport);
|
||||
@ -108,7 +108,7 @@ TinyMCEImageEnhancement.prototype = {
|
||||
var folderName = $('NewFolderName').value;
|
||||
var options = {
|
||||
method: 'post',
|
||||
postBody: 'Created=' + currentDate + '&Name=' + folderName + '&ClassName=Folder&ID=' + folderID + '&ajax=1&action_save=1',
|
||||
postBody: 'Created=' + currentDate + '&Name=' + folderName + '&ClassName=Folder&ID=' + folderID + '&ajax=1&action_save=1' + ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : ''),
|
||||
onSuccess: this.onFolderAddSuccess.bind(this),
|
||||
onFailure: function(transport) {
|
||||
errorMessage('Error: Folder not added', transport);
|
||||
|
Loading…
Reference in New Issue
Block a user