mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT Introduced constants for system paths like /sapphire in preparation for a more flexible directory reorganisation. Instead of hardcoding your path, please use the following constants: BASE_PATH, BASE_URL, SAPPHIRE_DIR, SAPPHIRE_PATH, CMS_DIR, CMS_PATH, THIRDPARTY_DIR, THIRDPARTY_PATH, ASSETS_DIR, ASSETS_PATH, THEMES_DIR, THEMES_PATH
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63175 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e2b626434a
commit
fabf01d076
@ -19,7 +19,7 @@ class AutocompleteTextField extends TextField {
|
||||
}
|
||||
|
||||
function Field() {
|
||||
// Requirements::javascript('sapphire/javascript/AutocompleteTextField.js');
|
||||
// Requirements::javascript(SAPPHIRE_DIR . '/javascript/AutocompleteTextField.js');
|
||||
$attributes = array(
|
||||
'class' => "{$this->class} text " . $this->extraClass(),
|
||||
'type' => 'text',
|
||||
|
@ -26,7 +26,7 @@ class HtmlEditorField extends TextareaField {
|
||||
*/
|
||||
function Field() {
|
||||
Requirements::javascript(MCE_ROOT . "tiny_mce_src.js");
|
||||
Requirements::javascript("jsparty/tiny_mce_improvements.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/tiny_mce_improvements.js");
|
||||
|
||||
// Don't allow unclosed tags - they will break the whole application ;-)
|
||||
$cleanVal = $this->value;
|
||||
|
@ -15,7 +15,7 @@ class HtmlOneLineField extends TextField {
|
||||
*/
|
||||
function Field() {
|
||||
Requirements::javascript(MCE_ROOT . "tiny_mce_src.js");
|
||||
Requirements::javascript("jsparty/tiny_mce_improvements.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/tiny_mce_improvements.js");
|
||||
|
||||
// Don't allow unclosed tags - they will break the whole application ;-)
|
||||
$cleanVal = $this->value;
|
||||
|
@ -28,12 +28,12 @@ class TabSet extends CompositeField {
|
||||
* The HTML is a standardised format, containing a <ul;
|
||||
*/
|
||||
public function FieldHolder() {
|
||||
Requirements::javascript("jsparty/loader.js");
|
||||
Requirements::javascript("jsparty/prototype.js");
|
||||
Requirements::javascript("jsparty/behaviour.js");
|
||||
Requirements::javascript("jsparty/prototype_improvements.js");
|
||||
Requirements::javascript("jsparty/tabstrip/tabstrip.js");
|
||||
Requirements::css("jsparty/tabstrip/tabstrip.css");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/loader.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/behaviour.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype_improvements.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/tabstrip/tabstrip.js");
|
||||
Requirements::css(THIRDPARTY_DIR . "/tabstrip/tabstrip.css");
|
||||
|
||||
return $this->renderWith("TabSetFieldHolder");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user