From 01c1651232e6ae259b7dbccedca2e74f57b4167e Mon Sep 17 00:00:00 2001 From: Naomi Date: Thu, 3 Feb 2011 11:51:26 -0500 Subject: [PATCH] small fix for reducing js files. --- public/js/airtime/library/spl.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/js/airtime/library/spl.js b/public/js/airtime/library/spl.js index d3105084b..bc9e1e233 100644 --- a/public/js/airtime/library/spl.js +++ b/public/js/airtime/library/spl.js @@ -377,9 +377,9 @@ function openDiffSPL(json) { setUpSPL(); } -$(document).ready(function() { - - $("#spl_sortable").sortable(); +function setUpSPL() { + + $("#spl_sortable").sortable(); $("#spl_sortable" ).bind( "sortstop", moveSPLItem); $("#spl_remove_selected").click(deleteSPLItem); $("#spl_new") @@ -400,5 +400,8 @@ $(document).ready(function() { $("#spl_sortable").droppable(); $("#spl_sortable" ).bind( "drop", addSPLItem); +} +$(document).ready(function() { + setUpSPL(); });