User tests: Successful: Unsuccessful:
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_installer Language & Strings Front End Plugins |
Labels |
Added:
?
?
|
All the JS and CSS should really go into separate files:
media/com_installer/js/com_installer.js
media/com_installer/css/com_installer.css
All the JS and CSS should really go into separate files.
May I just let the maintenance team to do this since I just follows original code to write it in php.
For me, it is make sense to write this css, js in plugin file because we can close them by closing plugin instead couple them in com_installer.
Not bad, I can do the styling change.
@asika32764 - In J4, we're trying to move ALL Javascript and CSS to the media
directory, so that it's all in 1 place. This means debugging and finding code is much easier. So it would be appreciated if you could do this.
The CSS bit is easy. As for the JS, you'll need to get the $return
value, so simply add a hidden input like so:
<input type="hidden" id="installer-return" value="<?php echo $return; ?>">
Then get this value in the JS file:
var returnUrl = $('#installer-return');
I know, my code is only against 3.7 now.
If I do this staff, I can only move my code since I don't know there may be any break after I moved other code wrote in the past and separated in different plugins. It will be clear that a PR just do one thing.
So I suggest make this thing happened after J4 that we can make sure code works currently in 3.7.
Ok leave it for now, I'll move it myself once this is merged and staging has been merged into 4.0-dev
I have tested this item
Tested on:
I have tested this item
I have tested this item
Also moved token out.
Maybe we can consider use Laravel way to handle CSRF token for Ajax and JS: https://laravel.com/docs/5.4/csrf#csrf-x-csrf-token
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
Labels |
RTC
yay!!!!
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-30 21:38:43 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
|
@asika32764
Please look at https://issues.joomla.org/tracker/joomla-cms/15119
we have no message of success or error when using drag and drop
I have tested this item✅ successfully on d66be84
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14924.