Skip to content

Commit

Permalink
MINOR Fixed merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Mar 16, 2011
1 parent dd6f9ed commit 31d7a00
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 266 deletions.
5 changes: 0 additions & 5 deletions core/model/SiteTree.php
Expand Up @@ -1672,11 +1672,6 @@ function VirtualPages() {
*/ */
function getCMSFields() { function getCMSFields() {
require_once("forms/Form.php"); require_once("forms/Form.php");
Requirements::javascript(SAPPHIRE_DIR . "/thirdparty/prototype/prototype.js");
Requirements::javascript(SAPPHIRE_DIR . "/thirdparty/behaviour/behaviour.js");
Requirements::javascript(CMS_DIR . "/javascript/SitetreeAccess.js");
Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
Requirements::javascript(SAPPHIRE_DIR . '/javascript/UpdateURL.js');


// Status / message // Status / message
// Create a status message for multiple parents // Create a status message for multiple parents
Expand Down
6 changes: 0 additions & 6 deletions docs/en/reference/leftandmain.md
Expand Up @@ -6,12 +6,6 @@ LeftAndMain is the base class of all the admin area controllers.


## Best Practices ## Best Practices


### Refreshing

Please use LeftAndMain::ForceReload to reload the whole form-area after an Ajax-Request. If you just need to refresh
parts of the form, please use javascript-replacement in the response of the original Ajax-Request. Consider using
`[api:Form]` for compiling Ajax-Responses and automatic detection of Ajax/Non-Ajax-Calls.

### Custom Access Checking ### Custom Access Checking


You can customize access control in `[api:LeftAndMain]`. You can customize access control in `[api:LeftAndMain]`.
Expand Down
6 changes: 6 additions & 0 deletions filesystem/Folder.php
Expand Up @@ -25,6 +25,12 @@ class Folder extends File {


static $default_sort = "\"Sort\""; static $default_sort = "\"Sort\"";


function populateDefaults() {
parent::populateDefaults();

if(!$this->Name) $this->Name = _t('AssetAdmin.NEWFOLDER',"NewFolder");
}

/** /**
* Find the given folder or create it both as {@link Folder} database records * Find the given folder or create it both as {@link Folder} database records
* and on the filesystem. If necessary, creates parent folders as well. * and on the filesystem. If necessary, creates parent folders as well.
Expand Down
169 changes: 0 additions & 169 deletions javascript/layout_helpers.js

This file was deleted.

86 changes: 0 additions & 86 deletions javascript/loader.js

This file was deleted.

0 comments on commit 31d7a00

Please sign in to comment.