Whitespace cleanup
This commit is contained in:
@@ -7,13 +7,13 @@ var BlockBase = new Class({
|
||||
initialize: function(parent, options){
|
||||
var self = this;
|
||||
self.setOptions(options);
|
||||
|
||||
|
||||
self.page = parent;
|
||||
|
||||
self.create();
|
||||
|
||||
},
|
||||
|
||||
|
||||
create: function(){
|
||||
this.el = new Element('div.block');
|
||||
},
|
||||
@@ -21,11 +21,11 @@ var BlockBase = new Class({
|
||||
getParent: function(){
|
||||
return this.page
|
||||
},
|
||||
|
||||
|
||||
hide: function(){
|
||||
this.el.hide();
|
||||
},
|
||||
|
||||
|
||||
show: function(){
|
||||
this.el.show();
|
||||
},
|
||||
|
||||
@@ -46,7 +46,7 @@ var PageBase = new Class({
|
||||
self.fireEvent('error');
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
openUrl: function(url){
|
||||
if(History.getPath() != url)
|
||||
History.push(url);
|
||||
@@ -59,15 +59,15 @@ var PageBase = new Class({
|
||||
getName: function(){
|
||||
return this.name
|
||||
},
|
||||
|
||||
|
||||
show: function(){
|
||||
this.el.addClass('active');
|
||||
},
|
||||
|
||||
|
||||
hide: function(){
|
||||
this.el.removeClass('active');
|
||||
},
|
||||
|
||||
|
||||
toElement: function(){
|
||||
return this.el
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ Page.Manage = new Class({
|
||||
'click': self.refresh.bind(self, true)
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
self.refresh_quick = new Element('a', {
|
||||
'title': 'Just scan for recently changed',
|
||||
'text': 'Quick library scan',
|
||||
|
||||
@@ -9,11 +9,11 @@ Page.Settings = new Class({
|
||||
tabs: {},
|
||||
current: 'about',
|
||||
has_tab: false,
|
||||
|
||||
|
||||
initialize: function(options){
|
||||
var self = this;
|
||||
self.parent(options);
|
||||
|
||||
|
||||
// Add to more menu
|
||||
if(self.name == 'settings')
|
||||
App.getBlock('more').addLink(new Element('a', {
|
||||
@@ -21,7 +21,7 @@ Page.Settings = new Class({
|
||||
'text': self.name.capitalize(),
|
||||
'title': self.title
|
||||
}), 'top')
|
||||
|
||||
|
||||
},
|
||||
|
||||
open: function(action, params){
|
||||
|
||||
Reference in New Issue
Block a user