FIX: fix setting same height

This commit is contained in:
Michal Kváček
2017-04-24 00:26:28 +02:00
parent e262473f36
commit f48c0cfac3
5 changed files with 9 additions and 79 deletions
+2 -71
View File
@@ -82,25 +82,6 @@ $ (function () {
});
});
// /***********************************************
// * NProgress Settings
// ***********************************************/
// var npSettings = {
// easing: 'ease',
// speed: 500
// };
//
// NProgress.configure (npSettings);
// $ (function () {
// setSameHeights ();
//
// var resizeTimer;
//
// $ (window).resize (function () {
// clearTimeout (resizeTimer);
// resizeTimer = setTimeout (setSameHeights, 150);
// });
// });
function setSameHeights($container) {
@@ -183,38 +164,6 @@ $ (function () {
});
// $ (function () {
// // set sortable options
// $ ('.images-container').sortable ({
// animation: 150,
// handle: ".control-btn.move",
// draggable: ".image-container",
// onMove: function (evt) {
// var $relatedElem = $ (evt.related);
//
// if ($relatedElem.hasClass ('add-image')) {
// return false;
// }
// }
// });
//
// var $controlsButtons = $ ('.controls');
//
// var $controlsButtonsStar = $controlsButtons.find ('.star');
//
// $controlsButtonsStar.on ('click', function (e) {
// e.preventDefault ();
//
// $controlsButtonsStar.removeClass ('active');
// $controlsButtonsStar.parents ('.image-container').removeClass ('main');
//
// $ (this).addClass ('active');
//
// $ (this).parents ('.image-container').addClass ('main');
// })
// });
$ (function () {
$ ('.nav-profile > li > a').on ('click', function () {
var $el = $ (this).next ();
@@ -242,22 +191,14 @@ $ (function () {
// Position switchers
var $customizeMenuRadioBtns = $customizeMenu.find ('.radio');
// /////////////////////////////////////////////////
// Initial state
// On setting event, set corresponding options
// Update customize view based on options
// Update theme based on options
/************************************************
* Initial State
*************************************************/
setThemeSettings ();
setSameHeights();
/************************************************
* Events
*************************************************/
@@ -498,13 +439,3 @@ $ (document).ready (function () {
$('form').areYouSure();
});
// /***********************************************
// * NProgress Settings
// ***********************************************/
//
// // start load bar
// NProgress.start ();
//
// // end loading bar
// NProgress.done ();
@@ -3,8 +3,8 @@
.row {
.col {
padding-left: $grid-gutter-width/2;
padding-right: $grid-gutter-width/2;
padding-left: $grid-gutter-width-base/2;
padding-right: $grid-gutter-width-base/2;
float: left;
}
}
@@ -14,5 +14,4 @@
</div>
</div>
</div>
@stop
@endsection
@@ -49,7 +49,7 @@
var newTemplateName = prompt ("@lang('admin/templates.newTemplateName')", templateName + "_" + "@lang('admin/templates.newTemplateNameSuffix')");
// no name given - give up
if (newTemplateName == null) return;
if (newTemplateName === null) return;
// copy given template
$.post ('{{route('templates.postCopy')}}', {
@@ -57,7 +57,7 @@
newName: newTemplateName,
_token: "{{csrf_token()}}"
}, function (data) {
if (data.status == 'success') {
if (data.status === 'success') {
location.reload ();
}
});