-
Notifications
You must be signed in to change notification settings - Fork 45
Ss4 upgrade #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Ss4 upgrade #56
Conversation
|
lol I did this in #57 too. |
unclecheese
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. Thanks for taking this on. Happy to merge it if we can just get the Requirements calls sorted. @sminnee ??
_config.php
Outdated
| <?php | ||
|
|
||
| define('BOOTSTRAP_FORMS_DIR',basename(dirname(__FILE__))); | ||
| define('BOOTSTRAP_FORMS_DIR','vendor/unclecheese/bootstrap-forms/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need this defined anymore. Use module references in Requirements:: calls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 034d9e8
| "javascript", | ||
| "css" | ||
| ] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
psr-4 autoload?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/BootstrapButtonGroupField.php
Outdated
|
|
||
| public function Field($attributes = array ()) | ||
| { | ||
| Requirements::javascript(BOOTSTRAP_FORMS_DIR."/javascript/bootstrap_forms.js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use module reference here: unclecheese/boostrapforms: file.js`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 034d9e8
| Requirements::javascript(BOOTSTRAP_FORMS_DIR."/javascript/bootstrap-select/js/bootstrap-select.min.js"); | ||
| Requirements::javascript(BOOTSTRAP_FORMS_DIR."/javascript/bootstrap-select/js/i18n/defaults-{$current_locale}.js"); | ||
| Requirements::css(BOOTSTRAP_FORMS_DIR."/javascript/bootstrap-select/css/bootstrap-select.min.css"); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix require calls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 034d9e8
|
I've asked @scott-nz for commit rights to his fork so that I can make the ^ changes. |
|
How's that @unclecheese ? |

SilverStripe 4 upgrade.