Permalink
Browse files

Took out delete file button. Unnecessary and cluttered when the actio…

…ns menu provides the option.
  • Loading branch information...
1 parent 0f84750 commit 3d98303f06ed3335c7a37ec7c3e7e1e71896e61e @jacwright committed Apr 24, 2012
Showing with 3 additions and 10 deletions.
  1. +2 −2 Cakefile
  2. +0 −4 public/admin/js/view/sidebar.js
  3. +1 −1 public/admin/main.html
  4. +0 −3 src/view/sidebar.coffee
View
@@ -40,13 +40,13 @@ compile = (file) ->
if ext is 'coffee'
try
fs.writeFileSync dest, coffee.compile(fs.readFileSync(file, 'utf8'))
- console.log 'compiled:', ansi.green, dest, ansi.none
+ console.log 'compiled:', ansi.green, file, ansi.none
catch e
console.error 'error:', ansi.red, e.message, ansi.none
else if ext is 'tmpl'
name = file.split('/').pop().split('.').shift()
fs.writeFileSync dest, templater.compile(name, fs.readFileSync(file, 'utf8'))
- console.log 'compiled:', ansi.green, dest, ansi.none
+ console.log 'compiled:', ansi.green, file, ansi.none
remove = (file) ->
@@ -111,10 +111,6 @@
file = $(this).closest('li.menu-item').data('model');
return editName(file);
});
- $('#delete-file').click(function() {
- var _ref;
- return (_ref = app.children.selected) != null ? _ref.destroy() : void 0;
- });
return $('#new-folder').click(function(event) {
var file, name;
event.preventDefault();
View
@@ -57,7 +57,7 @@
</ul>
</div>
<div class="btn-group">
- <button id="delete-file" class="btn"><span class="icon delete"></span></button>
+
</div>
</div>
<div id="menu">
View
@@ -92,10 +92,7 @@ require ['app', 'model/file', 'model/folder', 'templates/menu-item', 'templates/
$('#menu').delegate '.actions .rename', 'click', ->
file = $(this).closest('li.menu-item').data('model')
editName file
-
- $('#delete-file').click ->
- app.children.selected?.destroy()
$('#new-folder').click (event) ->

0 comments on commit 3d98303

Please sign in to comment.