1var shoppinglist_dao_stc = { 2 initializeList: function(tempCallback) { 3 $jq.ajax({ 4 url: "/stc/shoppinglist/shoppinglist-data-stc.php?orderby=SLI.shoppingListIngredientID%20DESC", 5 dataType: "json", 6 success:function(result) { 7 tempCallback(result); 8 } 9 }); 10 }, 11 addToList: function(item, tempCallback) { 12 var qs = ""; 13 14 if (item.department !== null) {qs += "&newdepartment=" + cleanURL(item.department);} 15 if (item.dealDetails !== null) {qs += "&newdealdetails=" + cleanURL(item.dealDetails);} 16 if (item.details !== null) {qs += "&newsubtext=" + cleanURL(item.details);} 17 if (item.recipeID !== null) {qs += "&newrecipeid=" + item.recipeID;} 18 if (item.terminationDate !== null && item.terminationDate != 'null') {qs += "&newterminationdate=" + item.terminationDate;} 19 if (item.storeID !== null && item.storeID != 'null') {qs += "&newstoreid=" + item.storeID;} 20 if (item.thumbnailURL !== null) {qs += "&newthumbnailpath=" + item.thumbnailURL;} 21 22 $jq.ajax({ 23 url: "/stc/shoppinglist/shoppinglist-data-stc.php?newingredient=" + cleanURL(item.ingredient) + qs, 24 dataType: "json", 25 success:function(result) { 26 tempCallback(result, result.items[0]); 27 } 28 }); 29 }, 30 removeFromList: function(ingredientID, tempCallback) { 31 $jq.ajax({ 32 url: "/stc/shoppinglist/shoppinglist-data-stc.php?removeingredientid=" + ingredientID, 33 dataType: "json", 34 success:function(result) { 35 tempCallback(result, ingredientID); 36 } 37 }); 38 }, 39 clearShoppingList: function(tempCallback) { 40 $jq.ajax({ 41 url: "/stc/shoppinglist/shoppinglist-data-stc.php?newshoppinglist=true", 42 dataType: "json", 43 success:function(result) { 44 tempCallback(result); 45 } 46 }); 47 } 48};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.