Commit 5dfb290d authored by alexandre's avatar alexandre

pulse + refresh page on user change

parent 26b3f445
......@@ -1095,30 +1095,16 @@ li + li .alt-symbol { display: none; }
border: none !important;
}
/* [data-module="true"] > .axis-row > .axis-row--background-wrapper > .line__body { */
/* transform: skew(-10deg); */
/* } */
@keyframes pulse {
0% { opacity: 1; }
100% { opacity: .5; }
}
[data-module="true"] > .axis-row > .axis-row--background-wrapper > .line__body > .line__title {
font-style: italic;
/* font-weight: bolder; */
/* color: var(--background-color); */
/* letter-spacing: 3px; */
/* text-decoration: underline wavy; */
/* display: inline-block; */
/* transform: skew(10deg); */
}
/* [data-contingent="true"] > .axis-row > .axis-row--background-wrapper > .line__body > .line__title::before { */
/* content: " "; */
/* display: inline-block; */
/* border: 8px solid transparent; */
/* border-left-color: var(--background-color); */
/* position: relative; */
/* margin-right: -10px; */
/* left: -7px; */
/* top: 2px; */
/* } */
animation: pulse 500ms infinite alternate;
}
[data-contingent="true"] > .axis-row > .axis-row--background-wrapper > .line__actant,
[data-contingent="true"] > .axis-row > .axis-row--background-wrapper > .line__adresse,
......@@ -1126,8 +1112,6 @@ li + li .alt-symbol { display: none; }
background: repeating-linear-gradient(-45deg, var(--background-color) 0px, var(--background-color) 1px, transparent 1px, transparent 5px), var(--row-color);
}
.axis-inline-title-form {
display: inline-block;
margin-top: -5px; /* Negative top padding line__body */
......
......@@ -21,13 +21,15 @@ window.W = window.W || {};
this.model = new W.UserAuthModel();
// this.listenTo(this.model, 'change', function() { radio.trigger('change', this.model); });
// this.listenTo(this.model, 'change', function() {
this.listenTo(this.model, 'change', function() {
console.log('chanded');
// var view = this.getView();
// // console.log(view);
// // view.destroy();
// // var baseView = new W.BaseView({model: this.model});
// // this.showView(baseView);
// });
// var main = view.getRegion('main');
// main.currentView.render();
// console.log("rendered");
//
Backbone.history.loadUrl();
});
var baseView = new W.BaseView({model: this.model});
this.showView(baseView);
......
......@@ -87,7 +87,10 @@ window.W = window.W || {};
scoreModel.fetch({
success: (function () {
baseView.showChildView('main', myScoreDetailView);
}).bind(this)
}).bind(this),
error: function () {
baseView.showChildView('main', new W.ForbiddenScoreDetailView());
}
});
baseView.getChildView('header').triggerMethod("hide");
......
......@@ -1702,6 +1702,12 @@ window.W = window.W || {};
});
W.ForbiddenScoreDetailView = Marionette.View.extend({
template: _.template("Cette partition n’existe pas ou bien ne vous est pas accessible."),
className: 'content'
});
W.ScoreDetailView = Marionette.View.extend({
template: '#score-template-vue',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment