Skip to content
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

[4.0] Skipto #24042

Closed
wants to merge 165 commits into from
Closed

[4.0] Skipto #24042

wants to merge 165 commits into from

Conversation

brianteeman
Copy link
Contributor

Initial commit - still a work in progress

@dgrammatiko Please advise/help on the addScriptOptions

SharkyKZ and others added 30 commits June 27, 2018 16:55
[plg_user_profile] Add RTL check to ToS field
…21098)

* Exceptions in Joomla\CMS\Table\Usergroup refer to categories

Pull Request for Issue joomla#21092 .

### Summary of Changes
remove todo that is clearly a copy paste error from somewhere else
change exception message to usergroups from catergory

NOTE the first exception` if ($this->id == 0)`
I am not sure if that should even be present - doesn't look like it to me - please advise

* Update Usergroup.php
* Speed up regex in emailcloak plugin

* Fix comment
* Fix subform.repeatable-table multi field styling

* Fix staging less/css

* revert previous
…and update sites rebuild (joomla#16355)

* Fix a problem with older language packs

Language packs installed under older Joomla versions are registered in the database under their package name, not under their name and since rebuild function fails on them.

e.g. package with 
  <name>Afrikaans (South Africa)</name>
  <packagename>af-ZA</packagename>

has name column in #_extensions table set as 	af-ZA and since existing query fails.

* Update updatesites.php
@dgrammatiko
Copy link
Contributor

dgrammatiko commented Mar 9, 2019

@brianteeman try

$document->addScriptDeclaration("document.addEventListener('DOMContentLoaded', function() {
    window.skipToMenuInit(Joomla.getOptions('skipto-settings'));
});");

wilsonge and others added 2 commits March 9, 2019 10:20
* [4.0] Postgresql date fix

Correct the date used in a postgres sql file

* installation
@wilsonge
Copy link
Contributor

wilsonge commented Mar 9, 2019

Hit the tab key or alt 0

OK. Either way - make the javascript change I suggested - @dgrammatiko 's is wrong (that function doesn't take an options argument)

$document->addScriptDeclaration("document.addEventListener('DOMContentLoaded', function() {
    window.SkipToConfig = Joomla.getOptions('skipto-settings');
    window.skipToMenuInit();
});");

Then see if the strings translate for you or not

@brianteeman
Copy link
Contributor Author

I will do after the rugby #priorities

@wilsonge
Copy link
Contributor

wilsonge commented Mar 9, 2019

It's only important if scotland manage to upset :D :D

@brianteeman
Copy link
Contributor Author

@wilsonge Thanks!!!!

The javascript is now working and like you I have had to add the $this->loadLanguage()

I am going to work on adding options etc in the plugin now

$current_section = 0;
}

if (!($current_section & $section))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!($current_section & $section))
if (!($current_section && $section))

@joomla-cms-bot joomla-cms-bot added Unit/System Tests and removed Language Change This is for Translators NPM Resource Changed This Pull Request can't be tested by Patchtester labels Mar 9, 2019
@brianteeman brianteeman closed this Mar 9, 2019
@brianteeman
Copy link
Contributor Author

See #24142

@brianteeman brianteeman deleted the npmskipto branch March 9, 2019 20:12
@dgrammatiko
Copy link
Contributor

@wilsonge yeah for sure I'm wrong:
Screenshot 2019-03-09 at 22 21 03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.