From 262f8f3749526a1ec04e208ba3e9945fc12f36ca Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 9 Jan 2011 14:56:40 -0600 Subject: Convert function expressions to declarations Signed-off-by: Dan McGee --- media/archweb.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/media/archweb.js b/media/archweb.js index 28398c47..bbbc48b2 100644 --- a/media/archweb.js +++ b/media/archweb.js @@ -92,7 +92,7 @@ function ajaxifyFiles() { } /* packages/differences.html */ -filter_packages = function() { +function filter_packages() { // start with all rows, and then remove ones we shouldn't show var rows = $('#tbody_differences').children(); var all_rows = rows; @@ -130,16 +130,16 @@ filter_packages = function() { rows.show(); // make sure we update the odd/even styling from sorting $('.results').trigger('applyWidgets'); -}; -filter_reset = function() { +} +function filter_reset() { $('#id_archonly').val('both'); $('#id_multilib').removeAttr('checked'); $('#id_minor').removeAttr('checked'); filter_packages(); -}; +} /* todolists/view.html */ -todolist_flag = function() { +function todolist_flag() { var link = this; $.getJSON(link.href, function(data) { if (data.complete) { @@ -151,4 +151,4 @@ todolist_flag = function() { } }); return false; -}; +} -- cgit v1.2.3