? ? ? Pending

User tests: Successful: Unsuccessful:

avatar asika32764
asika32764
27 Mar 2017

Pull Request for Issue #14905

Summary of Changes

This is a new PR for #14905 that for easy discuss about the new upload layout.

Images

Drag and drop install

drag-upload

Select install

select-upload

If browser does not support FormData, will fallback to original upload layout. Please someone help me test in IE8.

36baf3e 26 Mar 2017 avatar asika32764 Typo
80ad896 26 Mar 2017 avatar asika32764 CS
avatar asika32764 asika32764 - open - 27 Mar 2017
avatar asika32764 asika32764 - change - 27 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Mar 2017
Category Administration com_installer Language & Strings Front End Plugins
d66be84 27 Mar 2017 avatar asika32764 CS
avatar asika32764 asika32764 - change - 27 Mar 2017
Labels Added: ? ?
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 27 Mar 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Mar 2017

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.

avatar C-Lodder
C-Lodder - comment - 27 Mar 2017

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

avatar asika32764
asika32764 - comment - 27 Mar 2017

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.

avatar infograf768
infograf768 - comment - 27 Mar 2017

Agree with @C-Lodder

Also, I suggest that the dropbox be a bit different, something like

#dragarea {
    background-color: #fafbfc;
    border: 1px dashed #999;
    padding: 5% 0;
    transition: all 0.2s ease 0s;
    width: 100%;
}

It would give something like

screen shot 2017-03-27 at 16 17 07

What do you think?

avatar asika32764
asika32764 - comment - 27 Mar 2017

Not bad, I can do the styling change.

avatar C-Lodder
C-Lodder - comment - 27 Mar 2017

@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');
avatar infograf768
infograf768 - comment - 27 Mar 2017

hmm, found an issue which is not related to this PR.

In LTR, we do get OK
screen shot 2017-03-27 at 16 44 10

But in RTL, it is another matter
screen shot 2017-03-27 at 16 45 14

Will create a specific PR

avatar asika32764
asika32764 - comment - 27 Mar 2017

@C-Lodder

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.

avatar C-Lodder
C-Lodder - comment - 27 Mar 2017

Ok leave it for now, I'll move it myself once this is merged and staging has been merged into 4.0-dev

avatar C-Lodder C-Lodder - test_item - 27 Mar 2017 - Tested successfully
avatar C-Lodder
C-Lodder - comment - 27 Mar 2017

I have tested this item successfully on 5cf5dce

Tested on:

avatar infograf768 infograf768 - test_item - 27 Mar 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 27 Mar 2017

I have tested this item successfully on 5cf5dce


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14924.

avatar infograf768
infograf768 - comment - 27 Mar 2017

I have tested this item successfully on 5cf5dce


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14924.

avatar asika32764
asika32764 - comment - 27 Mar 2017

Moved return value out of JS from @C-Lodder 's suggest. That can be more easy to move code to single js file in the future.

avatar asika32764
asika32764 - comment - 27 Mar 2017

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

avatar infograf768 infograf768 - test_item - 28 Mar 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 28 Mar 2017

I have tested this item successfully on 13630da


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14924.

avatar C-Lodder C-Lodder - test_item - 28 Mar 2017 - Tested successfully
avatar C-Lodder
C-Lodder - comment - 28 Mar 2017

I have tested this item successfully on 13630da


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14924.

avatar jeckodevelopment jeckodevelopment - change - 28 Mar 2017
Status Pending Ready to Commit
Labels
avatar jeckodevelopment
jeckodevelopment - comment - 28 Mar 2017

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14924.

avatar brianteeman
brianteeman - comment - 28 Mar 2017

yay!!!!

avatar rdeutz rdeutz - change - 30 Mar 2017
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: ?
avatar rdeutz rdeutz - close - 30 Mar 2017
avatar rdeutz rdeutz - merge - 30 Mar 2017
avatar infograf768
infograf768 - comment - 6 Apr 2017

@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

Add a Comment

Login with GitHub to post a comment