diff --git a/src/rockstor/storageadmin/static/storageadmin/js/templates/afp/afp.jst b/src/rockstor/storageadmin/static/storageadmin/js/templates/afp/afp.jst index 2e53ec669..621afa918 100644 --- a/src/rockstor/storageadmin/static/storageadmin/js/templates/afp/afp.jst +++ b/src/rockstor/storageadmin/static/storageadmin/js/templates/afp/afp.jst @@ -26,7 +26,6 @@ - {{!--display_afp_shares--}} {{#each afpShare}} {{this.share}} diff --git a/src/rockstor/storageadmin/static/storageadmin/js/views/afp.js b/src/rockstor/storageadmin/static/storageadmin/js/views/afp.js index e6cc7ce5d..ca1cb168c 100644 --- a/src/rockstor/storageadmin/static/storageadmin/js/views/afp.js +++ b/src/rockstor/storageadmin/static/storageadmin/js/views/afp.js @@ -44,7 +44,6 @@ AFPView = RockstorLayoutView.extend({ this.shares.pageSize = 1000; this.dependencies.push(this.shares); this.updateFreq = 5000; - this.initHandlebarHelpers(); }, render: function() { @@ -192,26 +191,6 @@ AFPView = RockstorLayoutView.extend({ errPopupContent.html(msg); statusEl.click(function(){ errPopup.overlay().load(); }); }, - - initHandlebarHelpers: function(){ - Handlebars.registerHelper('display_afp_shares', function(){ - var html = ''; - this.collection.each(function(afpShare) { - var afpShareName = afpShare.get("share"), - afpShareID = afpShare.id; - html += ''; - html += '' + afpShareName + ''; - html += '' + afpShare.get("time_machine") + ''; - html += ''; - html += ' '; - html += ''; - html += ''; - html += ''; - }); - return new Handlebars.SafeString(html); - }); - } - }); // Add pagination