Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
09c3bc4a
Commit
09c3bc4a
authored
Jul 21, 2014
by
Ujvari Gergely
Committed by
gergely-ujvari
Jul 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Goodbye visualsearch
parent
778b1793
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
5016 deletions
+1
-5016
directives.coffee
h/static/scripts/directives.coffee
+0
-41
backbone-0.9.10.js
h/static/scripts/vendor/backbone-0.9.10.js
+0
-1498
underscore-1.4.3.js
h/static/scripts/vendor/underscore-1.4.3.js
+0
-1221
visualsearch.js
h/static/scripts/vendor/visualsearch.js
+0
-1927
common.scss
h/static/styles/common.scss
+1
-3
visualsearch.css
h/static/styles/visualsearch.css
+0
-326
No files found.
h/static/scripts/directives.coffee
View file @
09c3bc4a
...
...
@@ -398,46 +398,6 @@ fuzzytime = ['$filter', '$window', ($filter, $window) ->
]
visualSearch
=
[
'$parse'
,
(
$parse
)
->
link
:
(
scope
,
elem
,
attr
,
ctrl
)
->
_search
=
$parse
(
attr
.
onsearch
)
_clear
=
$parse
(
attr
.
onclear
)
_facets
=
$parse
(
attr
.
facets
)
_values
=
$parse
(
attr
.
values
)
_vs
=
VS
.
init
container
:
elem
callbacks
:
search
:
(
query
,
modelCollection
)
->
scope
.
$apply
->
_search
(
scope
,
{
"this"
:
modelCollection
})
clearSearch
:
(
original
)
->
_vs
.
searchBox
.
value
(
''
)
if
attr
.
onclear
scope
.
$apply
->
_clear
(
scope
)
else
original
()
facetMatches
:
(
callback
)
->
facets
=
_facets
(
scope
)
or
[]
callback
(
facets
or
[],
preserveOrder
:
true
)
valueMatches
:
(
facet
,
term
,
callback
)
->
values
=
_values
(
scope
)
?
[
facet
]
callback
(
values
or
[],
preserveOrder
:
true
)
scope
.
$watch
attr
.
query
,
(
query
)
->
p
=
0
_vs
.
searchBox
.
value
(
''
)
for
k
,
values
of
query
continue
unless
values
?
.
length
unless
angular
.
isArray
values
then
values
=
[
values
]
for
v
in
values
_vs
.
searchBox
.
addFacet
(
k
,
v
,
p
++
)
_search
(
scope
,
{
"this"
:
_vs
.
searchQuery
})
restrict
:
'C'
]
simpleSearch
=
[
'$parse'
,
(
$parse
)
->
link
:
(
scope
,
elem
,
attr
,
ctrl
)
->
scope
.
dosearch
=
->
...
...
@@ -485,6 +445,5 @@ angular.module('h.directives', ['ngSanitize'])
.
directive
(
'username'
,
username
)
.
directive
(
'userPicker'
,
userPicker
)
.
directive
(
'repeatAnim'
,
repeatAnim
)
.
directive
(
'visualSearch'
,
visualSearch
)
.
directive
(
'simpleSearch'
,
simpleSearch
)
.
directive
(
'whenscrolled'
,
whenscrolled
)
h/static/scripts/vendor/backbone-0.9.10.js
deleted
100644 → 0
View file @
778b1793
This diff is collapsed.
Click to expand it.
h/static/scripts/vendor/underscore-1.4.3.js
deleted
100644 → 0
View file @
778b1793
This diff is collapsed.
Click to expand it.
h/static/scripts/vendor/visualsearch.js
deleted
100644 → 0
View file @
778b1793
This diff is collapsed.
Click to expand it.
h/static/styles/common.scss
View file @
09c3bc4a
...
...
@@ -808,9 +808,7 @@ pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; }
}
}
//Visual Search////////////////////////////////
//Override their css here
.VS-search
{
.search-container
{
overflow
:
hidden
;
padding-right
:
0
.8em
;
}
...
...
h/static/styles/visualsearch.css
deleted
100644 → 0
View file @
778b1793
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment