inline header variables

This commit is contained in:
Jakob Ketterl
2021-02-15 17:12:17 +01:00
parent 7f9c0539bb
commit 48a9c76c18
5 changed files with 10 additions and 23 deletions

View File

@ -11,7 +11,6 @@ function Header(el) {
});
this.init_rx_photo();
this.download_details();
};
Header.prototype.setDetails = function(details) {
@ -56,14 +55,6 @@ Header.prototype.toggle_rx_photo = function(ev) {
}
};
Header.prototype.download_details = function() {
var self = this;
// TODO: make this use a relative URL again
$.ajax('/api/receiverdetails').done(function(data){
self.setDetails(data);
});
};
$.fn.header = function() {
if (!this.data('header')) {
this.data('header', new Header(this));