Skip to content
Snippets Groups Projects
Commit 1f9e62c5 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Checkstyles cleanup.

parent a35bcca0
No related merge requests found
...@@ -442,12 +442,18 @@ class Generator ...@@ -442,12 +442,18 @@ class Generator
$q = (integer)($v * (1.0 - $s * $f)); $q = (integer)($v * (1.0 - $s * $f));
$t = (integer)($v * (1.0 - $s * (1.0 - $f))); $t = (integer)($v * (1.0 - $s * (1.0 - $f)));
switch($i) { switch($i) {
case 0: return imagecolorallocate($im, $v, $t, $p); case 0:
case 1: return imagecolorallocate($im, $q, $v, $p); return imagecolorallocate($im, $v, $t, $p);
case 2: return imagecolorallocate($im, $p, $v, $t); case 1:
case 3: return imagecolorallocate($im, $p, $q, $v); return imagecolorallocate($im, $q, $v, $p);
case 4: return imagecolorallocate($im, $t, $p, $v); case 2:
default: return imagecolorallocate($im, $v, $p, $q); return imagecolorallocate($im, $p, $v, $t);
case 3:
return imagecolorallocate($im, $p, $q, $v);
case 4:
return imagecolorallocate($im, $t, $p, $v);
default:
return imagecolorallocate($im, $v, $p, $q);
} }
return imagecolorallocate($im, $R, $G, $B); return imagecolorallocate($im, $R, $G, $B);
} }
......
...@@ -254,7 +254,7 @@ $.fn.typeahead.Constructor.prototype.render = function(items) { ...@@ -254,7 +254,7 @@ $.fn.typeahead.Constructor.prototype.render = function(items) {
i = $(that.options.item).attr('data-value', item); i = $(that.options.item).attr('data-value', item);
i.find('a').html(that.highlighter(item)); i.find('a').html(that.highlighter(item));
return i[0]; return i[0];
}) });
this.$menu.html(items); this.$menu.html(items);
return this; return this;
...@@ -264,11 +264,10 @@ $.fn.typeahead.Constructor.prototype.select = function () { ...@@ -264,11 +264,10 @@ $.fn.typeahead.Constructor.prototype.select = function () {
var val = this.$menu.find('.active'); var val = this.$menu.find('.active');
if (val.length > 0) { if (val.length > 0) {
val = val.attr('data-value'); val = val.attr('data-value');
} else {
val = this.$element.val();
} }
else val = this.$element.val(); this.$element.val(this.updater(val)).change();
this.$element
.val(this.updater(val))
.change();
return this.hide(); return this.hide();
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment