Skip to content

Commit

Permalink
Merge branch 'release/2.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Jun 12, 2017
2 parents bed6d81 + 21ab05f commit 813c706
Show file tree
Hide file tree
Showing 15 changed files with 130 additions and 67 deletions.
7 changes: 6 additions & 1 deletion Resources/Private/JavaScript/Modules/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@
var obj = $('.in2studyfinder-js-fast-select').select2('data');
var url = obj[0].element.dataset.url;

if (url.length) {
/**
* Fire request only one time
*/
if (url.length && in2studyfinderRequestCounter === 0) {
in2studyfinderRequestCounter++;
window.location.href = url;
}
});
Expand All @@ -114,6 +118,7 @@
window.In2studyfinder = {};
}

window.in2studyfinderRequestCounter = 0;
window.In2studyfinder.Select = Select;
})
();
4 changes: 2 additions & 2 deletions Resources/Private/JavaScript/Modules/UiBehaviour.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
};

this.enableLoading = function() {
$(dom).addClass('in2studyfinder__loading');
$('.in2js-in2studyfinder-loader').addClass('in2studyfinder-loader--active');
};

this.disbaleLoading = function() {
$(dom).removeClass('in2studyfinder__loading');
$('.in2js-in2studyfinder-loader').removeClass('in2studyfinder-loader--active');
};

this.toggleOptionFormVisibility = function() {
Expand Down
2 changes: 2 additions & 0 deletions Resources/Private/Layouts/Default.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

<div class="in2studyfinder">
<f:render section="main" />

<f:render partial="StudyCourse/Loader" arguments="{_all}"/>
</div>
6 changes: 6 additions & 0 deletions Resources/Private/Partials/StudyCourse/Loader.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div class="in2studyfinder-loader in2js-in2studyfinder-loader">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" class="in2studyfinder-loader__icon">
<title>Loader</title>
<path d="M16 32c-4.274 0-8.292-1.664-11.314-4.686S0 20.274 0 16c0-3.026.849-5.973 2.456-8.522a16.061 16.061 0 0 1 6.386-5.791l1.344 2.682a13.044 13.044 0 0 0-5.192 4.708A12.953 12.953 0 0 0 3 15.999c0 7.168 5.832 13 13 13s13-5.832 13-13c0-2.459-.69-4.853-1.994-6.922a13.051 13.051 0 0 0-5.192-4.708l1.344-2.682a16.047 16.047 0 0 1 6.386 5.791A15.953 15.953 0 0 1 32 16c0 4.274-1.664 8.292-4.686 11.314S20.274 32 16 32z" />
</svg>
</div>
159 changes: 104 additions & 55 deletions Resources/Private/Sass/_general.scss
Original file line number Diff line number Diff line change
@@ -1,45 +1,26 @@
.in2studyfinder {

.hide {
display: none;
}

//
// Listenansicht
//

&__loading {
position: relative;

> * {
opacity: 0.1;
}

&::after {
content: '';
opacity: 1;
position: absolute;
top: 5%;
left: 0;
right: 0;
bottom: 0;
display: block;
background: url($iconPath + 'loading.gif') no-repeat top center;
}
}

&__button {
cursor: pointer;

margin: {
bottom: 9px;
top: 9px;
};
}

padding: {
bottom: $boxpadding;
left: 20px;
right: 25px;
top: $boxpadding;
};
}

&--show {
&:after {
background: url($iconPath + "open-white.png") no-repeat;
Expand All @@ -53,6 +34,7 @@
left: 10px;
}
}

&--reset {
&:after {
background: url($iconPath + "closex.png") no-repeat;
Expand All @@ -72,14 +54,15 @@
padding: {
top: $boxpadding;
bottom: $boxpadding;
};
}
}

&__filter {
overflow: hidden;

padding: {
bottom: 20px;
}
overflow: hidden;
}

&__filter-header {
Expand All @@ -101,10 +84,12 @@
margin: 0;
position: relative;
top: 15px;
width: 100%;

padding: {
left: 20px;
}
width: 100%;

&:before {
background: url($iconPath + "open.png") no-repeat;
content: "";
Expand Down Expand Up @@ -132,10 +117,12 @@

input {
display: none;

&:checked + .in2studyfinder__checkbox-label {
background-image: url($iconPath + "checked.png");
background-repeat: no-repeat;
}

&:disabled + .in2studyfinder__checkbox-label {
opacity: .5;
}
Expand All @@ -158,48 +145,48 @@
}

&__list {
list-style: none;
margin: {
bottom: 1em;
left: 0;
top: 0;
right: 0;
}
padding: 0;
}
list-style: none;
padding: 0;

&__item {
padding: 20px;
margin: {
bottom: 1em;
left: 0;
top: 0;
right: 0;
}
}

&__letter {
margin-left: 20px;
margin-top: 20px;
margin-bottom: 0;
&__item {
padding: 20px;
}

span {
margin-left: -20px;
}
}
&__letter {
margin-left: 20px;
margin-top: 20px;
margin-bottom: 0;

span {
margin-left: -20px;
}
}

//
// Pagebrowser
//

&__pagebrowser {
text-align: center;
margin: 20px 0;

a {
margin-right: 15px;
}
}

&__pagebrowser-page {
&:last-child {
margin-right: 0;
}
&__pagebrowser-page {
&:last-child {
margin-right: 0;
}
}

//
// Detailansicht
Expand All @@ -215,8 +202,10 @@

&__column {
float: left;

&--half {
width: 47.8%;

&:last-child {
margin-left: 4.4%;
}
Expand All @@ -236,15 +225,75 @@
right: 12px;
top: 12px;
}

@include clearfix;
}

&__content-box-head {
padding: 6px 0px 4px 4px;
}
&__content-box-head {
padding: 6px 0 4px 4px;
}
}

@media only screen and (max-width: 767px) {
//
// Loader
//
// Usage:
// <div class="in2studyfinder-loader in2js-in2studyfinder-loader">
// <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" class="in2studyfinder-loader__icon">
// <title>Loader</title>
// <path d="M16 32c-4.274 0-8.292-1.664-11.314-4.686S0 20.274 0 16c0-3.026.849-5.973 2.456-8.522a16.061 16.061 0 0 1 6.386-5.791l1.344 2.682a13.044 13.044 0 0 0-5.192 4.708A12.953 12.953 0 0 0 3 15.999c0 7.168 5.832 13 13 13s13-5.832 13-13c0-2.459-.69-4.853-1.994-6.922a13.051 13.051 0 0 0-5.192-4.708l1.344-2.682a16.047 16.047 0 0 1 6.386 5.791A15.953 15.953 0 0 1 32 16c0 4.274-1.664 8.292-4.686 11.314S20.274 32 16 32z" />
// </svg>
// </div>
//
// JavaScript:
// EXT:in2studyfinder/Resources/Private/JavaScript/Modules/UiBehaviour.js
//
.in2studyfinder-loader {
position: fixed;
top: 0;
height: 100%;
width: 100%;
left: 0;
-ms-flex-line-pack: center;
align-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-ms-grid-row-align: center;
align-items: center;
background-color: rgba(255, 255, 255, 0.5);
z-index: 100;
opacity: 0;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
display: none;
-webkit-transition: opacity 0.3s;
transition: opacity 0.3s;

&--active {
opacity: 1;
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}

&__icon {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-animation: rotating 1s linear infinite;
animation: rotating 1s linear infinite;
}
}

@keyframes rotating {
from {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}

to {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
}

2 changes: 1 addition & 1 deletion Resources/Public/Css/basic.css

Large diffs are not rendered by default.

Binary file removed Resources/Public/Icons/loading.gif
Binary file not shown.
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/In2studyfinder.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Modules/FilterHandling.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Modules/Select.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 813c706

Please sign in to comment.