Hello,

As I have a slow internet connection, is there any way to prevent img_assist from show "My images" as the default filter selection? It would be nice if it displayed nothing until I select the gallery that I want. Thanks!

CommentFileSizeAuthor
#3 img_assist.default-view.patch4.31 KBsun

Comments

zoo33’s picture

Category: support » feature
Priority: Normal » Minor

The way it's designed, that's not possible at the moment (more info here). If you want to hack your copy, you could comment out the command in onClickStartOver() in img_assist.js. You could also match this behaviour with a default "empty" option in the select list in the header.

This i a feature request I suppose – we could make a setting for this. If someone has any clever ideas and want to write a patch, go ahead!

sun’s picture

Title: How to not show "My images"? » Allow to define default view on startup
Version: 6.x-3.x-dev » 6.x-2.x-dev
sun’s picture

Component: User interface » Code
Priority: Minor » Critical
Status: Active » Needs review
StatusFileSize
new4.31 KB

Well, that's it - basically.

The major caveat is that the header frame in the popup is controlled by the main (lower) frame currently. That is (an also) wanted behavior and means, if IA is in wysiwyg mode and is invoked with an existing inline tag, then IA loads the image properties of the already embedded image into the lower frame and updates the header frame accordingly (-> "Cancel" only). Also, when browsing through images and a user clicks on one of the images, the main frame loads the image property page and updates the header frame accordingly afterwards.

So this tiny but definitely needed feature requires a major redesign of IA's popup handling.

Thus, bumping from minor to critical.

zoo33’s picture

Well, I read though it and it looks good. That's about all I can say right now, no time to test or in-depth reviewing...

rahim123’s picture

Thank you all for looking into this! Nice work.

benwei’s picture

This is the number one request I get from users regarding image assist on my site - thanks for working on it.

I'm confused about the patch, however. sun, you say this "requires a major redesign of IA's popup handling", but the patch looks pretty small. Does this patch actually implement the requested functionality (that is, being able to launch the IA popup directly to upload mode rather than browse mode when inserting a new image)? So far as I can tell by reading it and attempting to merge it up to a recent img_assist release, the answer is no.

If not, what exactly is its intended purpose?

sun’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Priority: Critical » Normal