mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-22 16:11:57 +02:00
updated dist
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
/*! gridster.js - v0.1.0 - 2012-10-03
|
||||
/*! gridster.js - v0.1.0 - 2012-10-07
|
||||
* http://gridster.net/
|
||||
* Copyright (c) 2012 ducksboard; Licensed MIT */
|
||||
|
||||
|
||||
Vendored
+24
-15
@@ -1,4 +1,4 @@
|
||||
/*! gridster.js - v0.1.0 - 2012-10-03
|
||||
/*! gridster.js - v0.1.0 - 2012-10-07
|
||||
* http://gridster.net/
|
||||
* Copyright (c) 2012 ducksboard; Licensed MIT */
|
||||
|
||||
@@ -365,7 +365,8 @@
|
||||
distance: 1,
|
||||
limit: true,
|
||||
offset_left: 0,
|
||||
autoscroll: true
|
||||
autoscroll: true,
|
||||
ignore_dragging: ['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON']
|
||||
// ,drag: function(e){},
|
||||
// start : function(e, ui){},
|
||||
// stop : function(e){}
|
||||
@@ -428,7 +429,7 @@
|
||||
};
|
||||
|
||||
fn.events = function() {
|
||||
this.$container.on('selectstart', this.on_select_start);
|
||||
this.$container.on('selectstart', $.proxy(this.on_select_start, this));
|
||||
|
||||
this.$container.on(pointer_events.start, this.options.items, $.proxy(
|
||||
this.drag_handler, this));
|
||||
@@ -535,8 +536,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (node === 'INPUT' || node === 'TEXTAREA' || node === 'SELECT' ||
|
||||
node === 'BUTTON') {
|
||||
if (this.ignore_drag(e)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -658,6 +658,11 @@
|
||||
|
||||
fn.on_select_start = function(e) {
|
||||
if (this.disabled) { return; }
|
||||
|
||||
if (this.ignore_drag(e)) {
|
||||
return;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
@@ -675,6 +680,10 @@
|
||||
$.removeData(this.$container, 'drag');
|
||||
};
|
||||
|
||||
fn.ignore_drag = function(event) {
|
||||
return $.inArray(event.target.nodeName, this.options.ignore_dragging) >= 0;
|
||||
};
|
||||
|
||||
//jQuery adapter
|
||||
$.fn.drag = function ( options ) {
|
||||
return this.each(function () {
|
||||
@@ -691,7 +700,7 @@
|
||||
|
||||
var defaults = {
|
||||
namespace: '',
|
||||
widget_selector: '> li',
|
||||
widget_selector: 'li',
|
||||
widget_margins: [10, 10],
|
||||
widget_base_dimensions: [400, 225],
|
||||
extra_rows: 0,
|
||||
@@ -766,7 +775,7 @@
|
||||
this.options = $.extend(true, defaults, options);
|
||||
this.$el = $(el);
|
||||
this.$wrapper = this.$el.parent();
|
||||
this.$widgets = $(this.options.widget_selector, this.$el).addClass('gs_w');
|
||||
this.$widgets = this.$el.children(this.options.widget_selector).addClass('gs_w');
|
||||
this.widgets = [];
|
||||
this.$changed = $([]);
|
||||
this.wrapper_width = this.$wrapper.width();
|
||||
@@ -1983,7 +1992,7 @@
|
||||
this.move_widget_down(
|
||||
$w, row + phgd.size_y - $w.data('coords').grid.row);
|
||||
}, this));
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -2064,14 +2073,14 @@
|
||||
if (this.is_widget(tcol, r) && !this.is_player_in(tcol, r)) {
|
||||
if (!grid_col[r].is(widget_grid_data.el)) {
|
||||
break;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.is_player(tcol, r) &&
|
||||
!this.is_placeholder_in(tcol, r) &&
|
||||
!this.is_player_in(tcol, r)) {
|
||||
upper_rows[tcol].push(r);
|
||||
};
|
||||
}
|
||||
|
||||
if (r < min_row) {
|
||||
min_row = r;
|
||||
@@ -2880,7 +2889,7 @@
|
||||
}
|
||||
|
||||
return $widgets;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -3057,8 +3066,8 @@
|
||||
for (var r = max_rows; r > actual_rows; r--) {
|
||||
for (var c = this.cols; c >= 1; c--) {
|
||||
this.add_faux_cell(r, c);
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
this.rows = max_rows;
|
||||
|
||||
@@ -3083,8 +3092,8 @@
|
||||
for (var c = actual_cols; c < max_cols; c++) {
|
||||
for (var r = this.rows; r >= 1; r--) {
|
||||
this.add_faux_cell(r, c);
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
this.cols = max_cols;
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
/*! gridster.js - v0.1.0 - 2012-10-03
|
||||
/*! gridster.js - v0.1.0 - 2012-10-07
|
||||
* http://gridster.net/
|
||||
* Copyright (c) 2012 ducksboard; Licensed MIT */.gridster{position:relative}.gridster>*{margin:0 auto;-webkit-transition:height .4s;-moz-transition:height .4s;-o-transition:height .4s;-ms-transition:height .4s;transition:height .4s}.gridster .gs_w{z-index:2;position:absolute}.ready .gs_w:not(.preview-holder){-webkit-transition:opacity .3s,left .3s,top .3s;-moz-transition:opacity .3s,left .3s,top .3s;-o-transition:opacity .3s,left .3s,top .3s;transition:opacity .3s,left .3s,top .3s}.ready .gs_w:not(.preview-holder){-webkit-transition:opacity .3s,left .3s,top .3s,width .3s,height .3s;-moz-transition:opacity .3s,left .3s,top .3s,width .3s,height .3s;-o-transition:opacity .3s,left .3s,top .3s,width .3s,height .3s;transition:opacity .3s,left .3s,top .3s,width .3s,height .3s}.gridster .preview-holder{z-index:1;position:absolute;background-color:#fff;border-color:#fff;opacity:.3}.gridster .player-revert{z-index:10!important;-webkit-transition:left .3s,top .3s!important;-moz-transition:left .3s,top .3s!important;-o-transition:left .3s,top .3s!important;transition:left .3s,top .3s!important}.gridster .dragging{z-index:10!important;-webkit-transition:all 0s!important;-moz-transition:all 0s!important;-o-transition:all 0s!important;transition:all 0s!important}
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+24
-15
@@ -1,4 +1,4 @@
|
||||
/*! gridster.js - v0.1.0 - 2012-10-03
|
||||
/*! gridster.js - v0.1.0 - 2012-10-07
|
||||
* http://gridster.net/
|
||||
* Copyright (c) 2012 ducksboard; Licensed MIT */
|
||||
|
||||
@@ -365,7 +365,8 @@
|
||||
distance: 1,
|
||||
limit: true,
|
||||
offset_left: 0,
|
||||
autoscroll: true
|
||||
autoscroll: true,
|
||||
ignore_dragging: ['INPUT', 'TEXTAREA', 'SELECT', 'BUTTON']
|
||||
// ,drag: function(e){},
|
||||
// start : function(e, ui){},
|
||||
// stop : function(e){}
|
||||
@@ -428,7 +429,7 @@
|
||||
};
|
||||
|
||||
fn.events = function() {
|
||||
this.$container.on('selectstart', this.on_select_start);
|
||||
this.$container.on('selectstart', $.proxy(this.on_select_start, this));
|
||||
|
||||
this.$container.on(pointer_events.start, this.options.items, $.proxy(
|
||||
this.drag_handler, this));
|
||||
@@ -535,8 +536,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (node === 'INPUT' || node === 'TEXTAREA' || node === 'SELECT' ||
|
||||
node === 'BUTTON') {
|
||||
if (this.ignore_drag(e)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -658,6 +658,11 @@
|
||||
|
||||
fn.on_select_start = function(e) {
|
||||
if (this.disabled) { return; }
|
||||
|
||||
if (this.ignore_drag(e)) {
|
||||
return;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
@@ -675,6 +680,10 @@
|
||||
$.removeData(this.$container, 'drag');
|
||||
};
|
||||
|
||||
fn.ignore_drag = function(event) {
|
||||
return $.inArray(event.target.nodeName, this.options.ignore_dragging) >= 0;
|
||||
};
|
||||
|
||||
//jQuery adapter
|
||||
$.fn.drag = function ( options ) {
|
||||
return this.each(function () {
|
||||
@@ -691,7 +700,7 @@
|
||||
|
||||
var defaults = {
|
||||
namespace: '',
|
||||
widget_selector: '> li',
|
||||
widget_selector: 'li',
|
||||
widget_margins: [10, 10],
|
||||
widget_base_dimensions: [400, 225],
|
||||
extra_rows: 0,
|
||||
@@ -766,7 +775,7 @@
|
||||
this.options = $.extend(true, defaults, options);
|
||||
this.$el = $(el);
|
||||
this.$wrapper = this.$el.parent();
|
||||
this.$widgets = $(this.options.widget_selector, this.$el).addClass('gs_w');
|
||||
this.$widgets = this.$el.children(this.options.widget_selector).addClass('gs_w');
|
||||
this.widgets = [];
|
||||
this.$changed = $([]);
|
||||
this.wrapper_width = this.$wrapper.width();
|
||||
@@ -1983,7 +1992,7 @@
|
||||
this.move_widget_down(
|
||||
$w, row + phgd.size_y - $w.data('coords').grid.row);
|
||||
}, this));
|
||||
};
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -2064,14 +2073,14 @@
|
||||
if (this.is_widget(tcol, r) && !this.is_player_in(tcol, r)) {
|
||||
if (!grid_col[r].is(widget_grid_data.el)) {
|
||||
break;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.is_player(tcol, r) &&
|
||||
!this.is_placeholder_in(tcol, r) &&
|
||||
!this.is_player_in(tcol, r)) {
|
||||
upper_rows[tcol].push(r);
|
||||
};
|
||||
}
|
||||
|
||||
if (r < min_row) {
|
||||
min_row = r;
|
||||
@@ -2880,7 +2889,7 @@
|
||||
}
|
||||
|
||||
return $widgets;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
@@ -3057,8 +3066,8 @@
|
||||
for (var r = max_rows; r > actual_rows; r--) {
|
||||
for (var c = this.cols; c >= 1; c--) {
|
||||
this.add_faux_cell(r, c);
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
this.rows = max_rows;
|
||||
|
||||
@@ -3083,8 +3092,8 @@
|
||||
for (var c = actual_cols; c < max_cols; c++) {
|
||||
for (var r = this.rows; r >= 1; r--) {
|
||||
this.add_faux_cell(r, c);
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
this.cols = max_cols;
|
||||
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user