release 2.010002

This commit is contained in:
Oliver Gorwits
2013-07-24 00:00:19 +01:00
parent c2f392b72d
commit eee6598c95
16 changed files with 88 additions and 51 deletions

View File

@@ -80,7 +80,7 @@
});
// job control refresh icon should reload the page
$('#nd_countdown-refresh').click(function() {
$('#nd_countdown-refresh').click(function(event) {
event.preventDefault();
for (var i = 0; i < nd_timers.length; i++) {
clearTimeout(nd_timers[i]);
@@ -89,7 +89,7 @@
});
// job control pause/play icon switcheroo
$('#nd_countdown-control').click(function() {
$('#nd_countdown-control').click(function(event) {
event.preventDefault();
var icon = $('#nd_countdown-control-icon');
icon.toggleClass('icon-pause icon-play text-error text-success');
@@ -107,7 +107,7 @@
// activity for admin task tables
// dynamically bind to all forms in the table
$(target).on('submit', 'form', function() {
$(target).on('click', '.nd_adminbutton', function(event) {
// stop form from submitting normally
event.preventDefault();
@@ -116,13 +116,16 @@
clearTimeout(nd_timers[i]);
}
// what purpose - add/update/del
var mode = $(this).attr('name')
// submit the query and put results into the tab pane
$.ajax({
type: 'POST'
,async: true
,dataType: 'html'
,url: uri_base + '/ajax/control/admin/' + tab + '/' + $(this).attr('name')
,data: $(this).serializeArray()
,url: uri_base + '/ajax/control/admin/' + tab + '/' + mode
,data: $(this).closest('tr').find('input[data-form="' + mode + '"]').serializeArray()
,beforeSend: function() {
$(target).html(
'<div class="span2 alert">Request submitted...</div>'

View File

@@ -62,7 +62,7 @@
// clickable device port names can simply resubmit AJAX rather than
// fetch the whole page again.
$('#ports_pane').on('click', '.nd_this-port-only', function() {
$('#ports_pane').on('click', '.nd_this-port-only', function(event) {
event.preventDefault(); // link is real so prevent page submit
var port = $(this).text();
@@ -120,7 +120,7 @@
});
// activity for contenteditable control
$('.tab-content').on('keydown', '[contenteditable=true]', function() {
$('.tab-content').on('keydown', '[contenteditable=true]', function(event) {
var esc = event.which == 27,
nl = event.which == 13;