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; } ...@@ -1095,30 +1095,16 @@ li + li .alt-symbol { display: none; }
border: none !important; border: none !important;
} }
/* [data-module="true"] > .axis-row > .axis-row--background-wrapper > .line__body { */ @keyframes pulse {
/* transform: skew(-10deg); */ 0% { opacity: 1; }
/* } */ 100% { opacity: .5; }
}
[data-module="true"] > .axis-row > .axis-row--background-wrapper > .line__body > .line__title { [data-module="true"] > .axis-row > .axis-row--background-wrapper > .line__body > .line__title {
font-style: italic; font-style: italic;
/* font-weight: bolder; */ animation: pulse 500ms infinite alternate;
/* 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; */
/* } */
[data-contingent="true"] > .axis-row > .axis-row--background-wrapper > .line__actant, [data-contingent="true"] > .axis-row > .axis-row--background-wrapper > .line__actant,
[data-contingent="true"] > .axis-row > .axis-row--background-wrapper > .line__adresse, [data-contingent="true"] > .axis-row > .axis-row--background-wrapper > .line__adresse,
...@@ -1126,8 +1112,6 @@ li + li .alt-symbol { display: none; } ...@@ -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); background: repeating-linear-gradient(-45deg, var(--background-color) 0px, var(--background-color) 1px, transparent 1px, transparent 5px), var(--row-color);
} }
.axis-inline-title-form { .axis-inline-title-form {
display: inline-block; display: inline-block;
margin-top: -5px; /* Negative top padding line__body */ margin-top: -5px; /* Negative top padding line__body */
......
...@@ -21,13 +21,15 @@ window.W = window.W || {}; ...@@ -21,13 +21,15 @@ window.W = window.W || {};
this.model = new W.UserAuthModel(); this.model = new W.UserAuthModel();
// this.listenTo(this.model, 'change', function() { radio.trigger('change', this.model); }); // this.listenTo(this.model, 'change', function() { radio.trigger('change', this.model); });
// this.listenTo(this.model, 'change', function() { this.listenTo(this.model, 'change', function() {
// var view = this.getView(); console.log('chanded');
// // console.log(view); // var view = this.getView();
// // view.destroy(); // var main = view.getRegion('main');
// // var baseView = new W.BaseView({model: this.model}); // main.currentView.render();
// // this.showView(baseView); // console.log("rendered");
// }); //
Backbone.history.loadUrl();
});
var baseView = new W.BaseView({model: this.model}); var baseView = new W.BaseView({model: this.model});
this.showView(baseView); this.showView(baseView);
......
...@@ -87,7 +87,10 @@ window.W = window.W || {}; ...@@ -87,7 +87,10 @@ window.W = window.W || {};
scoreModel.fetch({ scoreModel.fetch({
success: (function () { success: (function () {
baseView.showChildView('main', myScoreDetailView); baseView.showChildView('main', myScoreDetailView);
}).bind(this) }).bind(this),
error: function () {
baseView.showChildView('main', new W.ForbiddenScoreDetailView());
}
}); });
baseView.getChildView('header').triggerMethod("hide"); baseView.getChildView('header').triggerMethod("hide");
......
...@@ -1702,6 +1702,12 @@ window.W = window.W || {}; ...@@ -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({ W.ScoreDetailView = Marionette.View.extend({
template: '#score-template-vue', 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