text: /**
   * Created by admin on 10/28/15.
   */$(document).ready(function(){$.ajaxSetup({headers:{"X-CSRF-Token":$("meta[name=_token]").attr("content")}})});productApp.controller("ProductController",function(t,n,r){var i="http://sierrapn:8888";t.info={name:"Sierra Patient Network",times:[{Monday:"9am - 8pm",Tuesday:"9am - 8pm",Wednesday:"9am - 8pm",Thursday:"9am - 8pm",Friday:"9am - 8pm",Saturday:"9am - 8pm",Sunday:"9am - 8pm"}]};t.qtySort="gram";n.get("/inventory.json").success(function(e){t.items=e}).error(function(){console.log("error loading data")});t.test=[];r.getInventory().success(function(e){t.test=e});t.newProduct={name:"",description:"",type:"",active:"",price:""};t.priceFormat=1;t.switchPrice=function(){t.priceFormat===1?t.priceFormat=2:t.priceFormat=1};t.priceValue=[{value:""},{gram:"",eighth:"",quarter:"",half:"",oz:""}];t.save=function(){r.checkInventory(t.newProduct.name,t.newProduct,i)}});