Browse Source

Don't show delete dialog for category if it doesn't exist yet. fix #1961

pull/2096/merge
Ruud 12 years ago
parent
commit
1fd11fb547
  1. 5
      couchpotato/core/plugins/category/static/category.js

5
couchpotato/core/plugins/category/static/category.js

@ -271,6 +271,11 @@ var Category = new Class({
del: function(){
var self = this;
if(self.data.label == undefined){
self.el.destroy();
return;
}
var label = self.el.getElement('.category_label input').get('value');
var qObj = new Question('Are you sure you want to delete <strong>"'+label+'"</strong>?', '', [{

Loading…
Cancel
Save