/
admin.js
36 lines (30 loc) · 835 Bytes
/
admin.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
function InitPropertiesTableDragAndDrop(tableid, callback)
{
$('#' + tableid).tableDnD({
dragHandle : '.draghandle',
onDragClass : 'dragactive',
onDrop : function (table, row) {
var altrow = false;
$('#' + tableid + ' tr').each(function(x) {
if (altrow) $(this).addClass('altrow');
else $(this).removeClass('altrow');
altrow = !altrow;
});
if (callback) callback();
}
});
}
$(window).resize(function() {
$(window).trigger('resize.stickyTableHeaders');
});
$(function() {
$('#navbutton').click(function() {
$('#navbutton').toggleClass("clicked");
$('#navdropdown').toggle().each(function() {
pos = $('#navbutton').position();
height = $('#navbutton').outerHeight();
$(this).css({ top: (pos.top + height) + "px" });
});
});
$('.leftnav').clone().appendTo('#navdropdown');
});