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

Views cleanup #216

Merged
merged 3 commits into from
Feb 21, 2014
Merged

Views cleanup #216

merged 3 commits into from
Feb 21, 2014

Conversation

pardo-bsso
Copy link
Member

Just some low hanging fruit while I rework stateful views. I need it anyways.
If we agree on what is the expected behaviour I'll rebase #214 on top of this.
I avoided touching the config view on purpose.

(cherry picked from commit a228f49c792c576a01f68d3f7ca914da80660ed1)
@xaiki
Copy link
Member

xaiki commented Feb 11, 2014

looks good apart from the usual style nitpicks.
but I can see the rest of the file is out of style too.
so fix the most important ones, the rest can go in.

@pardo-bsso
Copy link
Member Author

looks good apart from the usual style nitpicks.
but I can see the rest of the file is out of style too.
so fix the most important ones, the rest can go in.

Ok, will redo and push again.

Thanks.

@darthpolly
Copy link
Member

Mind that PanelView is an extension of MasterView. PanelView only adds the toggleSide method which shows and hides the side panel. If you're implementing views without panels, such as MediaList and MediaDetails, they should extend MasterView.

Also there's a hierarchy in templates, mediaedit.jade:1 extends panelview.jade which extends masterview.jade. The idea behind MasterView was to add global mechanics common to all views (now there's only an alert which prevents you leaving the view without saving), so if you don't extend the template too, that mechanics won't work. Again, in MediaList and MediaDetails templates you can directly extend masterview.jade.

@pardo-bsso
Copy link
Member Author

On 11 February 2014 11:59, Patricio Reboratti [email protected] wrote:

Mind that PanelView is an extension of MasterView. PanelView only adds the toggleSide
method which shows and hides the side panel. If you're implementing views without panels,
such as MediaList and MediaDetails, they should extend MasterView.

Ok, I just did it that way and worked for me. Changed them to extend
from MasterView.

josx added a commit that referenced this pull request Feb 21, 2014
@josx josx merged commit cbde7cc into master Feb 21, 2014
@pardo-bsso pardo-bsso deleted the views-cleanup branch February 21, 2014 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants