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 ();