User tests: Successful: Unsuccessful:
bootstrap.framework
is always loaded in ISIS and HATHOR so it’s better to use that library instead of loading one more script!
The html markup is changed
The relative css file is not loaded anymore
The relative js file is not loaded anymore
To test this make sure you have plenty of data!
Apply the patch with patch tester ( make sure you are on staging)
purge the indexes if there are any
Re index, and observe that the progress bar is still there, working
Labels |
Added:
?
|
tested. Works fine. But I'm getting Unexpected token '}'
Category | ⇒ | JavaScript Search |
Title |
|
Latest commit adds one more progress bar (orange) for the optimize process (follows after indexing)
Well, that would be much better.
@test success, however I got a couple of JS errors:
The button has an Url in onClick button: https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_finder/views/index/view.html.php#L73
This one seems unrelated with the finder.
Thanks @anibalsanchez! For the second error there is a solution: #5259. The first one is related to bootstrap modal (?) or toolbar button (?). Trying to find the root of the problem there, but still I have no success. If you have any idea what is wrong please make a PR to get rid of that..
@anibalsanchez but according to this the code seems fine (?)
Here _getCommand according to the description should return a Javascript command, but it returns just the URL: https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/toolbar/button/popup.php#L115 ... that it's assigned to the onClick.
@anibalsanchez you’ll do a PR for that?
Sure ... but I don't know what it should return, Bootstrap modal does not need any onClick
It seems that bootstrap all it needs is a url for the iframe: https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/html/bootstrap.php#L319
@dgt41 the problem is in the toolbar button, where the Url is inserted as a command
https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/toolbar/button/popup.php#L59
https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/toolbar/button/popup.php#L65
One simple work around would be: set the button url wrapped with onclick
and on popup button remove it…
@anibalsanchez The easiest solution is to change onclick
with value
in the layout: https://github.com/joomla/joomla-cms/blob/staging/layouts/joomla/toolbar/popup.php#L19
@anibalsanchez check #5420
Status | Pending | ⇒ | Ready to Commit |
Moving to RTC since we have 2 successful tests.
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-12-14 15:01:34 |
@anibalsanchez The progress bar for the optimization is new and the behaviour is different when I test with the default data sample versus test with the test data sample. With the default sample the progress bar disappears when optimization is done, with the test data sample it stays.
When optimizing is done progress has a value of 109.09090909090908. >= 100 would help.
@waader Yes you are right, I just tested that.
The solution is quite simple:
in indexer.js line 88 has to be:
if (message == msg) {
And we have to add in views/indexer/tmpl/default.php
JHtml::_('behavior.core');
JFactory::getDocument()->addScriptDeclaration('var msg = "' . JText::_('COM_FINDER_INDEXER_MESSAGE_COMPLETE') . '"');
before line 15
Preview: