mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
added autocomplete to select user form
This commit is contained in:
parent
2fe94d611f
commit
c866cb6238
8 changed files with 71 additions and 5 deletions
|
@ -1552,6 +1552,16 @@ input[type="submit"], button, .button, .auth-buttons #login-buttons #login-butto
|
||||||
width: 80%;
|
width: 80%;
|
||||||
display: block; }
|
display: block; }
|
||||||
|
|
||||||
|
/* line 127, ../sass/modules/_forms.scss */
|
||||||
|
.ui-autocomplete {
|
||||||
|
background: white;
|
||||||
|
width: 200px!important;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
|
||||||
|
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
|
||||||
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); }
|
||||||
|
|
||||||
/* line 1, ../sass/modules/_dialogs.scss */
|
/* line 1, ../sass/modules/_dialogs.scss */
|
||||||
.dialog {
|
.dialog {
|
||||||
margin-bottom: 10px; }
|
margin-bottom: 10px; }
|
||||||
|
|
17
client/js/jquery-ui-autocomplete.js
vendored
Normal file
17
client/js/jquery-ui-autocomplete.js
vendored
Normal file
File diff suppressed because one or more lines are too long
26
client/js/jquery.select-to-autocomplete.min.js
vendored
Normal file
26
client/js/jquery.select-to-autocomplete.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -123,4 +123,11 @@ input[type="submit"], button, .button, .btn{
|
||||||
float:left;
|
float:left;
|
||||||
width:80%;
|
width:80%;
|
||||||
display:block;
|
display:block;
|
||||||
|
}
|
||||||
|
.ui-autocomplete{
|
||||||
|
background: white;
|
||||||
|
width: 200px!important;
|
||||||
|
padding:10px;
|
||||||
|
font-size:14px;
|
||||||
|
@include box-shadow(0 1px 1px black(0.15));
|
||||||
}
|
}
|
|
@ -67,6 +67,9 @@ Template.post_edit.rendered = function(){
|
||||||
$('#submitted_date').datepicker();
|
$('#submitted_date').datepicker();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#postUser").selectToAutocomplete();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Template.post_edit.events = {
|
Template.post_edit.events = {
|
||||||
|
|
|
@ -21,6 +21,9 @@ Template.post_submit.rendered = function(){
|
||||||
$('#submitted').datepicker().on('changeDate', function(ev){
|
$('#submitted').datepicker().on('changeDate', function(ev){
|
||||||
$('#submitted_hidden').val(moment(ev.date).valueOf());
|
$('#submitted_hidden').val(moment(ev.date).valueOf());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#postUser").selectToAutocomplete();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Template.post_submit.events = {
|
Template.post_submit.events = {
|
||||||
|
|
|
@ -50,10 +50,6 @@ getDateRange= function(pageNumber){
|
||||||
// // some of the post's categories weren't found in the database
|
// // some of the post's categories weren't found in the database
|
||||||
// return _.filter(postCategories, function(e){return e});
|
// return _.filter(postCategories, function(e){return e});
|
||||||
// }
|
// }
|
||||||
getDomain = function(url){
|
|
||||||
urlObject = Npm.require('url');
|
|
||||||
return urlObject.parse(url).hostname;
|
|
||||||
}
|
|
||||||
// ---------------------------------- URL Helper Functions ----------------------------------- //
|
// ---------------------------------- URL Helper Functions ----------------------------------- //
|
||||||
getPostUrl = function(id){
|
getPostUrl = function(id){
|
||||||
return Meteor.absoluteUrl()+'posts/'+id;
|
return Meteor.absoluteUrl()+'posts/'+id;
|
||||||
|
@ -81,6 +77,10 @@ slugify = function(text) {
|
||||||
getShortUrl = function(post){
|
getShortUrl = function(post){
|
||||||
return post.shortUrl ? post.shortUrl : post.url;
|
return post.shortUrl ? post.shortUrl : post.url;
|
||||||
}
|
}
|
||||||
|
getDomain = function(url){
|
||||||
|
urlObject = Npm.require('url');
|
||||||
|
return urlObject.parse(url).hostname;
|
||||||
|
}
|
||||||
|
|
||||||
// ---------------------------------- String Helper Functions ----------------------------------- //
|
// ---------------------------------- String Helper Functions ----------------------------------- //
|
||||||
cleanUp = function(s){
|
cleanUp = function(s){
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"meteor": {},
|
"meteor": {},
|
||||||
"packages": {
|
"packages": {
|
||||||
"router": {},
|
"router": {},
|
||||||
"moment": {},
|
"momentjs": {},
|
||||||
"database-forms": {
|
"database-forms": {
|
||||||
"git":"git://github.com/SachaG/database-forms.git"
|
"git":"git://github.com/SachaG/database-forms.git"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue