summaryrefslogtreecommitdiffstats
path: root/deluge/ui/web
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-10-08 14:22:49 +0100
committerCalum Lind <calumlind@gmail.com>2018-10-08 14:49:36 +0100
commit20fa106b8b746662cf1a884f8b2f8521a94efa68 (patch)
tree79544ea607471590a1451878176124911145d6d8 /deluge/ui/web
parent654e2af4e5f0e17b405c360e45846f4529555d3d (diff)
downloaddeluge-20fa106b8b746662cf1a884f8b2f8521a94efa68.tar.gz
deluge-20fa106b8b746662cf1a884f8b2f8521a94efa68.tar.bz2
deluge-20fa106b8b746662cf1a884f8b2f8521a94efa68.zip
Update pre-commit config
The prettier hook was missing a trailing slash so omitting css files. Add a trailing space fix hook and fix issues.
Diffstat (limited to 'deluge/ui/web')
-rw-r--r--deluge/ui/web/js/extjs/ext-extensions-debug.js54
-rw-r--r--deluge/ui/web/js/extjs/ext-extensions/form/RadioGroupFix.js2
-rw-r--r--deluge/ui/web/js/extjs/ext-extensions/form/SpinnerFieldFix.js2
-rw-r--r--deluge/ui/web/js/extjs/ext-extensions/form/ToggleField.js2
-rw-r--r--deluge/ui/web/js/extjs/ext-extensions/layout/FormLayoutFix.js2
-rw-r--r--deluge/ui/web/js/extjs/ext-extensions/tree/MultiSelectionModelFix.js2
-rw-r--r--deluge/ui/web/js/extjs/ext-extensions/tree/TreeGridNodeUIFix.js2
7 files changed, 33 insertions, 33 deletions
diff --git a/deluge/ui/web/js/extjs/ext-extensions-debug.js b/deluge/ui/web/js/extjs/ext-extensions-debug.js
index 38b665ff3..37165d2ab 100644
--- a/deluge/ui/web/js/extjs/ext-extensions-debug.js
+++ b/deluge/ui/web/js/extjs/ext-extensions-debug.js
@@ -83,7 +83,7 @@ Ext.ux.form.FileUploadField = Ext.extend(Ext.form.TextField, {
this.bindListeners();
this.resizeEl = this.positionEl = this.wrap;
},
-
+
bindListeners: function(){
this.fileInput.on({
scope: this,
@@ -102,11 +102,11 @@ Ext.ux.form.FileUploadField = Ext.extend(Ext.form.TextField, {
change: function(){
var v = this.fileInput.dom.value;
this.setValue(v);
- this.fireEvent('fileselected', this, v);
+ this.fireEvent('fileselected', this, v);
}
- });
+ });
},
-
+
createFileInput : function() {
this.fileInput = this.wrap.createChild({
id: this.getFileInputId(),
@@ -117,7 +117,7 @@ Ext.ux.form.FileUploadField = Ext.extend(Ext.form.TextField, {
size: 1
});
},
-
+
reset : function(){
if (this.rendered) {
this.fileInput.remove();
@@ -149,18 +149,18 @@ Ext.ux.form.FileUploadField = Ext.extend(Ext.form.TextField, {
Ext.ux.form.FileUploadField.superclass.onDestroy.call(this);
Ext.destroy(this.fileInput, this.button, this.wrap);
},
-
+
onDisable: function(){
Ext.ux.form.FileUploadField.superclass.onDisable.call(this);
this.doDisable(true);
},
-
+
onEnable: function(){
Ext.ux.form.FileUploadField.superclass.onEnable.call(this);
this.doDisable(false);
},
-
+
// private
doDisable: function(disabled){
this.fileInput.dom.disabled = disabled;
@@ -184,7 +184,7 @@ Ext.reg('fileuploadfield', Ext.ux.form.FileUploadField);
Ext.form.FileUploadField = Ext.ux.form.FileUploadField;
/*!
* Ext.ux.form.RadioGroup.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
@@ -294,7 +294,7 @@ Ext.reg('spinnerfield', Ext.ux.form.SpinnerField);
Ext.form.SpinnerField = Ext.ux.form.SpinnerField;
/*!
* Ext.ux.form.SpinnerField.js
- *
+ *
* Copyright (c) Damien Churchill 2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
@@ -506,7 +506,7 @@ Ext.ux.form.SpinnerGroup = Ext.extend(Ext.form.CheckboxGroup, {
Ext.reg('spinnergroup', Ext.ux.form.SpinnerGroup);
/*!
* Ext.ux.form.ToggleField.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
@@ -823,7 +823,7 @@ Ext.ux.grid.BufferView = Ext.extend(Ext.grid.GridView, {
});
/*!
* Ext.ux.layout.FormLayoutFix.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
@@ -857,7 +857,7 @@ Ext.override(Ext.layout.FormLayout, {
});
/*!
* Ext.ux.tree.MultiSelectionModelFix.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
@@ -870,7 +870,7 @@ Ext.override(Ext.layout.FormLayout, {
* @author Damien Churchill <damoxc@gmail.com>
*/
Ext.override(Ext.tree.MultiSelectionModel, {
-
+
onNodeClick: function (node, e) {
if (e.ctrlKey && this.isSelected(node)) {
this.unselect(node);
@@ -909,11 +909,11 @@ Ext.override(Ext.tree.MultiSelectionModel, {
select: function(node, e, keepExisting, suppressEvent) {
if(keepExisting !== true){
this.clearSelections(true);
- }
+ }
if(this.isSelected(node)){
this.lastSelNode = node;
return node;
- }
+ }
this.selNodes.push(node);
this.selMap[node.id] = node;
this.lastSelNode = node;
@@ -1382,18 +1382,18 @@ Ext.tree.ColumnResizer = Ext.extend(Ext.util.Observable, {
var hw = 5,
x = e.getPageX(),
hd = e.getTarget('.x-treegrid-hd', 3, true);
-
- if(hd){
+
+ if(hd){
var r = hd.getRegion(),
ss = hd.dom.style,
pn = hd.dom.parentNode;
-
+
if(x - r.left <= hw && hd.dom !== pn.firstChild) {
var ps = hd.dom.previousSibling;
while(ps && Ext.fly(ps).hasClass('x-treegrid-hd-hidden')) {
ps = ps.previousSibling;
}
- if(ps) {
+ if(ps) {
this.activeHd = Ext.get(ps);
ss.cursor = Ext.isWebKit ? 'e-resize' : 'col-resize';
}
@@ -1404,7 +1404,7 @@ Ext.tree.ColumnResizer = Ext.extend(Ext.util.Observable, {
}
if(ns) {
this.activeHd = Ext.get(ns);
- ss.cursor = Ext.isWebKit ? 'w-resize' : 'col-resize';
+ ss.cursor = Ext.isWebKit ? 'w-resize' : 'col-resize';
}
} else{
delete this.activeHd;
@@ -1444,13 +1444,13 @@ Ext.tree.ColumnResizer = Ext.extend(Ext.util.Observable, {
var nw = this.proxy.getWidth(),
tree = this.tree,
disabled = this.dragHeadersDisabled;
-
+
this.proxy.remove();
delete this.dragHd;
-
+
tree.columns[this.hdIndex].width = nw;
tree.updateColumnWidths();
-
+
setTimeout(function(){
tree.headersDisabled = disabled;
}, 100);
@@ -1619,7 +1619,7 @@ Ext.ux.tree.TreeGridRootNodeUI = Ext.extend(Ext.tree.TreeNodeUI, {
expand : Ext.emptyFn
});/*!
* Ext.ux.tree.TreeGridNodeUIFix.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
@@ -1631,7 +1631,7 @@ Ext.override(Ext.ux.tree.TreeGridNodeUI, {
updateColumns: function() {
if (!this.rendered) return;
-
+
var a = this.node.attributes,
t = this.node.getOwnerTree(),
cols = t.columns,
@@ -1649,7 +1649,7 @@ Ext.override(Ext.ux.tree.TreeGridNodeUI, {
});
Ext.tree.RenderColumn = Ext.extend(Ext.tree.Column, {
-
+
constructor: function(c) {
c.tpl = c.tpl || new Ext.XTemplate('{' + c.dataIndex + ':this.format}');
c.tpl.format = c.renderer;
diff --git a/deluge/ui/web/js/extjs/ext-extensions/form/RadioGroupFix.js b/deluge/ui/web/js/extjs/ext-extensions/form/RadioGroupFix.js
index 7ddfab80f..8d557be4e 100644
--- a/deluge/ui/web/js/extjs/ext-extensions/form/RadioGroupFix.js
+++ b/deluge/ui/web/js/extjs/ext-extensions/form/RadioGroupFix.js
@@ -1,6 +1,6 @@
/*!
* Ext.ux.form.RadioGroup.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
diff --git a/deluge/ui/web/js/extjs/ext-extensions/form/SpinnerFieldFix.js b/deluge/ui/web/js/extjs/ext-extensions/form/SpinnerFieldFix.js
index c4ee7e75f..433dfc755 100644
--- a/deluge/ui/web/js/extjs/ext-extensions/form/SpinnerFieldFix.js
+++ b/deluge/ui/web/js/extjs/ext-extensions/form/SpinnerFieldFix.js
@@ -1,6 +1,6 @@
/*!
* Ext.ux.form.SpinnerField.js
- *
+ *
* Copyright (c) Damien Churchill 2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
diff --git a/deluge/ui/web/js/extjs/ext-extensions/form/ToggleField.js b/deluge/ui/web/js/extjs/ext-extensions/form/ToggleField.js
index 5b40482e3..3ff70a4c9 100644
--- a/deluge/ui/web/js/extjs/ext-extensions/form/ToggleField.js
+++ b/deluge/ui/web/js/extjs/ext-extensions/form/ToggleField.js
@@ -1,6 +1,6 @@
/*!
* Ext.ux.form.ToggleField.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
diff --git a/deluge/ui/web/js/extjs/ext-extensions/layout/FormLayoutFix.js b/deluge/ui/web/js/extjs/ext-extensions/layout/FormLayoutFix.js
index 9a03d10a1..24905cdaa 100644
--- a/deluge/ui/web/js/extjs/ext-extensions/layout/FormLayoutFix.js
+++ b/deluge/ui/web/js/extjs/ext-extensions/layout/FormLayoutFix.js
@@ -1,6 +1,6 @@
/*!
* Ext.ux.layout.FormLayoutFix.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
diff --git a/deluge/ui/web/js/extjs/ext-extensions/tree/MultiSelectionModelFix.js b/deluge/ui/web/js/extjs/ext-extensions/tree/MultiSelectionModelFix.js
index 8046e64ee..96e4cd870 100644
--- a/deluge/ui/web/js/extjs/ext-extensions/tree/MultiSelectionModelFix.js
+++ b/deluge/ui/web/js/extjs/ext-extensions/tree/MultiSelectionModelFix.js
@@ -1,6 +1,6 @@
/*!
* Ext.ux.tree.MultiSelectionModelFix.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
diff --git a/deluge/ui/web/js/extjs/ext-extensions/tree/TreeGridNodeUIFix.js b/deluge/ui/web/js/extjs/ext-extensions/tree/TreeGridNodeUIFix.js
index 41966795d..fb11732f2 100644
--- a/deluge/ui/web/js/extjs/ext-extensions/tree/TreeGridNodeUIFix.js
+++ b/deluge/ui/web/js/extjs/ext-extensions/tree/TreeGridNodeUIFix.js
@@ -1,6 +1,6 @@
/*!
* Ext.ux.tree.TreeGridNodeUIFix.js
- *
+ *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
*
* This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with