More UI stuff

This commit is contained in:
2024-08-12 13:53:37 -04:00
parent e86de04a69
commit 35d3a399e3
5 changed files with 103 additions and 106 deletions
+10 -10
View File
@@ -69,12 +69,12 @@
$.scope.hosts.push(hostParseRow(host));
}
$.scope.hosts.__setPut(function($el, item, list){
$.scope.hosts.put = function($el, item, list){
$el.addClass('table-success');
$el.fadeIn(2000, function(){
$el.removeClass('table-success');
});
});
};
});
}
@@ -130,25 +130,25 @@
$editHostForm.find('[name=is_wildcard').attr('disabled', true);
hostPopulate(); //populate the table
$.scope.hosts.__setTake(function($el, item, list){
$.scope.hosts.take = function($el, item, list){
$el.addClass('table-danger');
$el.fadeOut(1000, function(){
$el.remove()
});
});
};
$.scope.hosts.__setUpdate(function($el, $render, item, list){
$.scope.hosts.update = function($el, $render, item, list){
$render.show()
$el.replaceWith($render);
});
};
$.scope.editHost.__setPut(function($el, item, list){
$.scope.editHost.put = function($el, item, list){
$el.slideDown();
});
};
$.scope.editHost.__setTake(function($el, item, list){
$.scope.editHost.take = function($el, item, list){
$el.slideUp();
});
};
// app.subscribe(/^model:Host/, function(data, topic){
// console.log(topic, data);