Browse Source

Code adjustments

Tobias Reich 9 years ago
parent
commit
6672f556e1
5 changed files with 34 additions and 34 deletions
  1. 0 0
      dist/main.js
  2. 1 1
      src/scripts/build.js
  3. 1 1
      src/scripts/multiselect.js
  4. 31 31
      src/scripts/swipe.js
  5. 1 1
      src/scripts/visible.js

File diff suppressed because it is too large
+ 0 - 0
dist/main.js


+ 1 - 1
src/scripts/build.js

@@ -5,7 +5,7 @@
  * @copyright	2014 by Tobias Reich
  */
 
-build = {};
+build = {}
 
 build.divider = function(title) {
 

+ 1 - 1
src/scripts/multiselect.js

@@ -5,7 +5,7 @@
  * @copyright	2014 by Tobias Reich
  */
 
-multiselect = {};
+multiselect = {}
 
 multiselect.position = {
 

+ 31 - 31
src/scripts/swipe.js

@@ -7,48 +7,48 @@
 
 swipe = {
 
-	obj: null,
-	tolerance: 150,
-	offset: 0,
+	obj:		null,
+	tolerance:	150,
+	offset:		0
 
-	start: function(obj, tolerance) {
+}
 
-		if (obj) swipe.obj = obj;
-		if (tolerance) swipe.tolerance = tolerance;
+swipe.start = function(obj, tolerance) {
 
-		return true;
+	if (obj)		swipe.obj = obj;
+	if (tolerance)	swipe.tolerance = tolerance;
 
-	},
+	return true;
 
-	move: function(e) {
+}
 
-		if (swipe.obj===null) return false;
+swipe.move = function(e) {
 
-		swipe.offset = -1 * e.x;
+	if (swipe.obj===null) return false;
 
-		swipe.obj.css({
-			WebkitTransform: 'translateX(' + swipe.offset + 'px)',
-			MozTransform: 'translateX(' + swipe.offset + 'px)',
-			transform: 'translateX(' + swipe.offset + 'px)'
-		});
-
-	},
+	swipe.offset = -1 * e.x;
 
-	stop: function(e, left, right) {
+	swipe.obj.css({
+		WebkitTransform:	'translateX(' + swipe.offset + 'px)',
+		MozTransform:		'translateX(' + swipe.offset + 'px)',
+		transform:			'translateX(' + swipe.offset + 'px)'
+	});
 
-		if (e.x<=-swipe.tolerance) left(true);
-		else if (e.x>=swipe.tolerance) right(true);
-		else if (swipe.obj!==null) {
-			swipe.obj.css({
-				WebkitTransform: 'translateX(0px)',
-				MozTransform: 'translateX(0px)',
-				transform: 'translateX(0px)'
-			});
-		}
+}
 
-		swipe.obj = null;
-		swipe.offset = 0;
+swipe.stop = function(e, left, right) {
 
+	if (e.x<=-swipe.tolerance)		left(true);
+	else if (e.x>=swipe.tolerance)	right(true);
+	else if (swipe.obj!==null) {
+		swipe.obj.css({
+			WebkitTransform:	'translateX(0px)',
+			MozTransform:		'translateX(0px)',
+			transform:			'translateX(0px)'
+		});
 	}
 
-};
+	swipe.obj		= null;
+	swipe.offset	= 0;
+
+}

+ 1 - 1
src/scripts/visible.js

@@ -5,7 +5,7 @@
  * @copyright	2014 by Tobias Reich
  */
 
-visible = {};
+visible = {}
 
 visible.albums = function() {
 	if ($('#tools_albums').css('display')==='block') return true;

Some files were not shown because too many files changed in this diff