Commit 3936e635 by Kálmán Viktor

dashboard: fix js in vm create

parent 2a91985c
...@@ -38,10 +38,6 @@ $(function () { ...@@ -38,10 +38,6 @@ $(function () {
$("a[href=" + window.location.hash +"]").tab('show'); $("a[href=" + window.location.hash +"]").tab('show');
vmCreateLoaded(); vmCreateLoaded();
/* no js compatibility */
$('.no-js-hidden').show();
$('.js-hidden').hide();
}); });
function vmCreateTemplateChange(new_this) { function vmCreateTemplateChange(new_this) {
...@@ -144,6 +140,13 @@ function vmCreateLoaded() { ...@@ -144,6 +140,13 @@ function vmCreateLoaded() {
return false; return false;
}); });
/* no js compatibility */
$('.no-js-hidden').show();
$('.js-hidden').hide();
/* slider things */
$("[data-slider]").each(function() { $("[data-slider]").each(function() {
if($(this).css('display') != "none") if($(this).css('display') != "none")
$(this).simpleSlider(); $(this).simpleSlider();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment