mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Refactored tabstrip.js to use livequery for loading
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65717 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7c2861b0f4
commit
b39d3811ff
@ -943,7 +943,6 @@ class ComplexTableField_Popup extends Form {
|
||||
* Some have special requirements.
|
||||
*/
|
||||
//Requirements::css(CMS_DIR . '/css/layout.css');
|
||||
Requirements::css(THIRDPARTY_DIR . '/tabstrip/tabstrip.css');
|
||||
Requirements::css(SAPPHIRE_DIR . '/css/Form.css');
|
||||
Requirements::css(SAPPHIRE_DIR . '/css/ComplexTableField_popup.css');
|
||||
Requirements::css(CMS_DIR . '/css/typography.css');
|
||||
@ -951,8 +950,6 @@ class ComplexTableField_Popup extends Form {
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/behaviour.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype_improvements.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/loader.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/tabstrip/tabstrip.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/scriptaculous.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/controls.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/layout_helpers.js");
|
||||
|
@ -21,7 +21,6 @@ class ScaffoldingComplexTableField_Popup extends Form {
|
||||
* Some have special requirements.
|
||||
*/
|
||||
//Requirements::css(CMS_DIR . 'css/layout.css');
|
||||
Requirements::css(THIRDPARTY_DIR . '/tabstrip/tabstrip.css');
|
||||
Requirements::css(SAPPHIRE_DIR . '/css/Form.css');
|
||||
Requirements::css(SAPPHIRE_DIR . '/css/ComplexTableField_popup.css');
|
||||
Requirements::css(CMS_DIR . '/css/typography.css');
|
||||
@ -30,8 +29,6 @@ class ScaffoldingComplexTableField_Popup extends Form {
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/behaviour.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype_improvements.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/loader.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/tabstrip/tabstrip.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/scriptaculous.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/controls.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/layout_helpers.js");
|
||||
|
@ -53,6 +53,8 @@ class TabSet extends CompositeField {
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/behaviour.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype_improvements.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/jquery/jquery.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . '/jquery/plugins/livequery/jquery.livequery.js');
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/tabstrip/tabstrip.js");
|
||||
Requirements::css(THIRDPARTY_DIR . "/tabstrip/tabstrip.css");
|
||||
|
||||
|
@ -1177,14 +1177,11 @@ class Member_ProfileForm extends Form {
|
||||
|
||||
function __construct($controller, $name, $member) {
|
||||
Requirements::clear();
|
||||
Requirements::css(THIRDPARTY_DIR . '/tabstrip/tabstrip.css');
|
||||
Requirements::css(CMS_DIR . '/css/typography.css');
|
||||
Requirements::css(CMS_DIR . '/css/cms_right.css');
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/behaviour.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/prototype_improvements.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/loader.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/tabstrip/tabstrip.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/scriptaculous.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/controls.js");
|
||||
Requirements::javascript(THIRDPARTY_DIR . "/layout_helpers.js");
|
||||
|
@ -308,9 +308,7 @@ class Security extends Controller {
|
||||
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::javascript(THIRDPARTY_DIR . "/scriptaculous/effects.js");
|
||||
Requirements::css(THIRDPARTY_DIR . "/tabstrip/tabstrip.css");
|
||||
Requirements::css(SAPPHIRE_DIR . "/css/Form.css");
|
||||
|
||||
// Needed because the <base href=".."> in the template makes problems
|
||||
|
Loading…
x
Reference in New Issue
Block a user