mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
update adjustments and ui (#384)
* update
* update
* testit
* Revert "testit"
This reverts commit b1cc645161
.
* update schema
* update
* add adjustment to serverinfo
* remove Adjustbool
* remove v4l2only
* fix json check for create effect
* update deb
* update
* update remote adjust
* update
* add eff schemas
This commit is contained in:
2
assets/webconfig/js/lib/draggable.min.js
vendored
2
assets/webconfig/js/lib/draggable.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -494,7 +494,7 @@ JSONEditor.prototype = {
|
||||
return this.editors[path];
|
||||
},
|
||||
watch: function(path,callback) {
|
||||
this.watchlist = this.watchlist || {};
|
||||
this.watchlist = this.watchlist || {};
|
||||
this.watchlist[path] = this.watchlist[path] || [];
|
||||
this.watchlist[path].push(callback);
|
||||
|
||||
@@ -517,7 +517,7 @@ JSONEditor.prototype = {
|
||||
return this;
|
||||
},
|
||||
notifyWatchers: function(path) {
|
||||
if(!this.watchlist || !this.watchlist[path]) return this;
|
||||
if(!this.watchlist || !this.watchlist[path]) return this;
|
||||
for(var i=0; i<this.watchlist[path].length; i++) {
|
||||
this.watchlist[path][i]();
|
||||
}
|
||||
@@ -6284,7 +6284,7 @@ JSONEditor.AbstractTheme = Class.extend({
|
||||
return el;
|
||||
},
|
||||
getHeader: function(text) {
|
||||
var el = document.createElement('h3');
|
||||
var el = document.createElement('h4');
|
||||
if(text.innerHTML == ''){
|
||||
text.style.display = 'none';
|
||||
return text;
|
||||
|
@@ -1,9 +1,11 @@
|
||||
|
||||
$(function() {
|
||||
|
||||
$('#side-menu').metisMenu();
|
||||
|
||||
});
|
||||
|
||||
var oldWidth;
|
||||
//Loads the correct sidebar on window load,
|
||||
//collapses the sidebar on window resize.
|
||||
// Sets the min-height of #page-wrapper to window size
|
||||
@@ -11,19 +13,29 @@ $(function() {
|
||||
$(window).bind("load resize", function() {
|
||||
var topOffset = 50;
|
||||
var width = (this.window.innerWidth > 0) ? this.window.innerWidth : this.screen.width;
|
||||
if (width < 768) {
|
||||
$('div.navbar-collapse').addClass('collapse');
|
||||
topOffset = 100; // 2-row-menu
|
||||
} else {
|
||||
$('div.navbar-collapse').removeClass('collapse');
|
||||
}
|
||||
if(oldWidth != width)
|
||||
{
|
||||
if (width < 768)
|
||||
{
|
||||
$('#main-nav').css({"position":"fixed","right":"-235px","top":"45px","width":"230px","border":"1px solid rgba(0, 0, 0, .2)","box-shadow":"0 3px 9px rgba(0, 0, 0, .5)"});
|
||||
topOffset = 100; // 2-row-menu
|
||||
$('.mnava').on('click', function(){
|
||||
$("html, body").animate({ scrollTop: 0 }, "fast");
|
||||
$( "#main-nav" ).animate({right: "-235px",}, 300 );
|
||||
$(".navbar-toggle").addClass("closed");
|
||||
});
|
||||
}
|
||||
else
|
||||
$( "#main-nav" ).removeAttr("style").css({"position":"absolute"});
|
||||
|
||||
var height = ((this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height) - 1;
|
||||
height = height - topOffset;
|
||||
if (height < 1) height = 1;
|
||||
if (height > topOffset) {
|
||||
$("#page-wrapper").css("min-height", (height-11) + "px");
|
||||
}
|
||||
|
||||
var height = ((this.window.innerHeight > 0) ? this.window.innerHeight : this.screen.height) - 1;
|
||||
height = height - topOffset;
|
||||
if (height < 1) height = 1;
|
||||
if (height > topOffset) {
|
||||
$("#page-wrapper").css("min-height", (height-11) + "px");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var url = window.location;
|
||||
@@ -42,3 +54,16 @@ $(function() {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('.navbar-toggle').off().on('click', function(){
|
||||
if($('#main-nav').css("right") != "-2px")
|
||||
{
|
||||
$('#main-nav').animate({right: "-2px",}, 300 );
|
||||
$(".navbar-toggle").removeClass("closed");
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#main-nav').animate({right: "-235px",}, 300 );
|
||||
$(".navbar-toggle").addClass("closed");
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user