Skip to content

Commit

Permalink
remove unused helper and commented out code. #1275
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaganti committed May 1, 2016
1 parent 53497c8 commit 1d8d3c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Expand Up @@ -26,7 +26,6 @@
</tr>
</thead>
<tbody>
{{!--display_afp_shares--}}
{{#each afpShare}}
<tr>
<td>{{this.share}}</td>
Expand Down
21 changes: 0 additions & 21 deletions src/rockstor/storageadmin/static/storageadmin/js/views/afp.js
Expand Up @@ -44,7 +44,6 @@ AFPView = RockstorLayoutView.extend({
this.shares.pageSize = 1000;
this.dependencies.push(this.shares);
this.updateFreq = 5000;
this.initHandlebarHelpers();
},

render: function() {
Expand Down Expand Up @@ -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 += '<tr>';
html += '<td>' + afpShareName + '</td>';
html += '<td>' + afpShare.get("time_machine") + '</td>';
html += '<td>';
html += '<a href="#afp/edit/' + afpShareID + '"><i class="glyphicon glyphicon-pencil"></i></a>&nbsp;';
html += '<a href="#" class="delete-afp-share" data-share="' + afpShareName + '" data-id="' + afpShareID + '"><i class="glyphicon glyphicon-trash"></i></a>';
html += '</td>';
html += '</tr>';
});
return new Handlebars.SafeString(html);
});
}

});

// Add pagination
Expand Down

0 comments on commit 1d8d3c8

Please sign in to comment.