summaryrefslogtreecommitdiffstats
path: root/module/web/static/js/views/abstract
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-20 17:05:30 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-02-20 17:05:30 +0100
commitd4fabd4878050fdfea4e88dfe54eb90b4e35690f (patch)
treec276e53d6272a2fc9de57d01b4b4b7b66891a66e /module/web/static/js/views/abstract
parentmore animation for dashboard (diff)
downloadpyload-d4fabd4878050fdfea4e88dfe54eb90b4e35690f.tar.xz
tooltips and other improvements on webui
Diffstat (limited to 'module/web/static/js/views/abstract')
-rw-r--r--module/web/static/js/views/abstract/itemView.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/module/web/static/js/views/abstract/itemView.js b/module/web/static/js/views/abstract/itemView.js
index 1c14e7dc3..75b058874 100644
--- a/module/web/static/js/views/abstract/itemView.js
+++ b/module/web/static/js/views/abstract/itemView.js
@@ -8,14 +8,13 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) {
destroy: function() {
this.undelegateEvents();
this.unbind();
- if (this.onDestroy){
+ if (this.onDestroy) {
this.onDestroy();
}
this.$el.removeData().unbind();
this.remove();
},
-
hide: function() {
this.$el.slideUp();
},
@@ -25,9 +24,15 @@ define(['jquery', 'backbone', 'underscore'], function($, Backbone, _) {
},
deleteItem: function(e) {
- if(e)
+ if (e)
e.stopPropagation();
this.model.destroy();
+ },
+
+ restart: function(e) {
+ if(e)
+ e.stopPropagation();
+ this.model.restart();
}
});