Skip to content

Commit c137a43

Browse files
committed
Merge branch 'develop'
2 parents b5bb638 + c3a0f3c commit c137a43

File tree

5 files changed

+5
-32
lines changed

5 files changed

+5
-32
lines changed

modules/loop_search_node/js/loopSearchBoxController.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -471,30 +471,6 @@ angular.module('searchBoxApp').controller('loopSearchBoxController', ['CONFIG',
471471
$scope.searchClicked(false);
472472
};
473473

474-
/**
475-
* Resets the current search to default.
476-
*/
477-
$scope.reset = function reset() {
478-
// Reset pager.
479-
if (CONFIG.provider.hasOwnProperty('pager')) {
480-
$scope.query.pager = angular.copy(CONFIG.provider.pager);
481-
}
482-
483-
// Check if initial query exists.
484-
if (CONFIG.hasOwnProperty('initialQueryText')) {
485-
$scope.query.text = angular.copy(CONFIG.initialQueryText);
486-
487-
search(true);
488-
}
489-
else {
490-
// No initial query.
491-
$scope.query.text = '';
492-
493-
// Remove hits.
494-
communicatorService.$emit('hits', {"hits" : {}});
495-
}
496-
};
497-
498474
// Get the show on the road.
499475
init();
500476
}

themes/loop/css/styles.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3687,7 +3687,6 @@ a.question--term {
36873687
/* Search node results
36883688
========================================================================== */
36893689
.search-node-result--item {
3690-
36913690
padding: 20px 0;
36923691
border-top: 1px solid #cccccc; }
36933692
.search-node-result--item-content {
@@ -3697,7 +3696,6 @@ a.question--term {
36973696
.search-node-result--link {
36983697
display: block;
36993698
font-size: 18px;
3700-
font-weight: bold;
37013699
text-decoration: none;
37023700
margin-bottom: 1em;
37033701
line-height: 1em; }
@@ -3707,7 +3705,6 @@ a.question--term {
37073705
.search-node-result--data-wrapper {
37083706
flex: 0 0 100%;
37093707
padding-right: 36px; }
3710-
37113708
@media only screen and (min-width: 43em) {
37123709
.search-node-result--data-wrapper {
37133710
flex: 0 0 auto; } }
@@ -3720,6 +3717,7 @@ a.question--term {
37203717
@media only screen and (min-width: 43em) {
37213718
.search-node-result--data-wrapper-subject {
37223719
flex: 0 0 auto; } }
3720+
37233721
.search-node-result--meta-data-date {
37243722
color: #b3b3b3;
37253723
font-size: .9em;

themes/loop/sass/modules/_search-node-result.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
&--link {
2323
display: block;
2424
font-size: 18px;
25-
font-weight: bold;
2625
text-decoration: none;
2726
margin-bottom: 1em;
2827
line-height: 1em;
29-
28+
3029
&:hover {
3130
color: $green;
3231
}

themes/loop/templates/search/angular/pager.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
hide-if-empty="true"
66
page="pager.page + 1"
77
page-size="pager.size"
8-
total="pager.max"
8+
total="hits.hits"
99
show-prev-next="true"
1010
show-first-last="true"
1111
text-first="« {{ Drupal.t('first', { }, { 'context': 'angular' }) }}"

themes/loop/templates/search/angular/result.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ <h1 class="page-title">{{ Drupal.t('Search results', {}, { 'context': 'angular'
1616
<div data-ng-repeat="hit in hits.results" class="search-node-result--item">
1717
<a href="{{ hit.url }}" class="search-node-result--link" data-ng-bind-html="hit.title"></a>
1818
<div class="search-node-result--item-content">
19-
<div class="search-node-result--meta-data-date">{{ hit.created*1000 | date : 'd. MMMM yyyy' }}</div>
2019
<div class="search-node-result--data-wrapper"><div class="search-node-result--meta-data-type is-{{ hit.type }}">{{ Drupal.t(hit.type, { }, { 'context': 'angular' }) }}</div></div>
21-
<div class="search-node-result--data-wrapper"><a href="{{ hit.url }}" class="search-node-result--comments">{{ hit.comment_count }} {{ Drupal.t('Reply', { }, { 'context': 'angular' }) }}</a></div>
2220
<div class="search-node-result--data-wrapper-subject">{{ Drupal.t('Subject', { }, { 'context': 'angular' }) }}:
2321
<div class="search-node-result--subject" data-ng-click="filterUpdate('field_subject', hit.field_subject['0'])">{{ hit.field_subject['0'] }}</div>
2422
</div>
23+
<div class="search-node-result--meta-data-date">{{ hit.created*1000 | date : 'd. MMMM yyyy' }}</div>
24+
<div class="search-node-result--data-wrapper"><a href="{{ hit.url }}" class="search-node-result--comments">{{ hit.comment_count }} {{ Drupal.t('Reply', { }, { 'context': 'angular' }) }}</a></div>
2525
</div>
2626
</div>
2727

0 commit comments

Comments
 (0)