Permalink
Browse files

clean up entry select styling, remove unused selectize dependencies

  • Loading branch information...
jurre authored and tarzan committed Feb 16, 2015
1 parent eeb3b2a commit 33192730a2976811c0f289a7aacbb6fae3d4512a
View
@@ -280,7 +280,7 @@ GEM
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (~> 1.1)
select2-rails (3.5.9)
select2-rails (3.5.9.3)
thor (~> 0.14)
sexp_processor (4.4.3)
shoulda-matchers (2.7.0)
@@ -5,7 +5,6 @@
//= require jquery.atwho
//= require moment
//= require pikaday
//= require selectize
//= require chartjs
//= require select2
//= require charts
@@ -33,32 +32,6 @@ $('.alert').ready(function() {
}, 5000);
});
$('#entry_tag_list').selectize({
valueField: 'tag',
labelField: 'tag',
searchField: 'tag',
plugins: ['remove_button'],
delimiter: ',',
createOnBlur: true,
persist: false,
create: function(input) {
return {
value: input,
tag: input
};
},
load: function(query, callback) {
var data = $('#entry_tag_list').data('data');
if (!query.length) {
return callback(data);
}
var result = $.grep(data, function(e) {
return e.tag.indexOf(query) === 0;
});
return callback(result);
}
});
$(document).ready(function() {
$('.submit-button').prop('disabled', true);
$('#content').keyup(function() {
@@ -27,7 +27,6 @@
@import "reports";
@import url(//fonts.googleapis.com/css?family=Open+Sans);
@import "pikaday";
@import "selectize";
@import "select2";
@import "tagger";
@import "jquery.atwho";
@@ -168,3 +167,24 @@ h1 {
text-overflow: ellipsis;
font-size: 0.9em;
}
.select2-container .select2-choice {
background: none;
background-image: none;
height: 34px;
margin-right: 1px;
.select2-chosen {
margin-top: 2px;
}
}
.select2-container .select2-choice .select2-arrow {
background: none;
background-image: none;
border-left: none;
b {
margin-top: 2px;
}
}
Oops, something went wrong.

0 comments on commit 3319273

Please sign in to comment.