forked from hummypkg/webif
43db44d742
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@210 2a923420-c742-0410-a762-8d5b09965624
34 lines
854 B
JavaScript
Executable File
34 lines
854 B
JavaScript
Executable File
|
|
$(document).ready(function() {
|
|
$('button').button();
|
|
|
|
var $dialog = $('#dialogue').dialog({
|
|
title: "Package Management Results",
|
|
modal: false, autoOpen: false,
|
|
height: 500, width: 700,
|
|
show: 'scale', hide: 'fade',
|
|
draggable: true, resizable: true,
|
|
buttons: { "Close":
|
|
function() {$(this).dialog('close');}},
|
|
close: function(e,u) { window.location.reload(true); }
|
|
});
|
|
|
|
var opkg = '/cgi-bin/opkg.jim?cmd=';
|
|
|
|
$('#opkgupdate').click(function() {
|
|
$('#result_txt').load(opkg + 'update');
|
|
$('#results').show('slow');
|
|
});
|
|
|
|
$('button.remove, button.install, button.upgrade').click(function() {
|
|
$('#dspinner').show();
|
|
$('#dresults').load(
|
|
opkg + encodeURIComponent(
|
|
$(this).attr('action') + ' ' + $(this).attr('id')
|
|
),
|
|
function() { $('#dspinner').hide('slow') });
|
|
$dialog.dialog('open');
|
|
});
|
|
});
|
|
|