mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
[devices] fix
This commit is contained in:
@@ -4,7 +4,7 @@ define([
|
|||||||
'backbone',
|
'backbone',
|
||||||
'common',
|
'common',
|
||||||
'app/views/device',
|
'app/views/device',
|
||||||
'app/collections/devices',
|
'app/collections/devices'
|
||||||
], function($, _, Backbone, Common, Device, DevicesCollection) {
|
], function($, _, Backbone, Common, Device, DevicesCollection) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@@ -17,6 +17,7 @@ define([
|
|||||||
initialize: function() {
|
initialize: function() {
|
||||||
this.devices = new DevicesCollection();
|
this.devices = new DevicesCollection();
|
||||||
this.listenTo(this.devices, 'reset', this.reset);
|
this.listenTo(this.devices, 'reset', this.reset);
|
||||||
|
|
||||||
this.render();
|
this.render();
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -40,12 +41,13 @@ define([
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
this.$el.html(this.template());
|
this.$el.html(this.template());
|
||||||
$("#right-panel").html(this.$el);
|
|
||||||
|
|
||||||
this.$table = this.$('table');
|
this.$table = this.$('table');
|
||||||
this.$tableBody = this.$('tbody');
|
this.$tableBody = this.$('tbody');
|
||||||
this.$loadingTip = this.$('.loading-tip');
|
this.$loadingTip = this.$('.loading-tip');
|
||||||
this.$emptyTip = this.$('.empty-tips');
|
this.$emptyTip = this.$('.empty-tips');
|
||||||
|
|
||||||
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function() {
|
show: function() {
|
||||||
|
Reference in New Issue
Block a user