(window.webpackJsonp=window.webpackJsonp||[]).push([["b4bb"],{oLuy:function(t,o,e){"use strict";e.r(o);e("la2R"),e("5RJm"),e("DqgX"),e("T8I6");angular.module("footyroom").controller("ArticleEditorController",["$scope","$http","$window",function(t,o,e){t.article=e.DataStore.article||{status:"draft"},t.isPosting=!1,t.publish=function(){t.isPosting||(t.isPosting=!0,o.post(t.article.id?"/articles/"+t.article.id:"/articles",{title:t.article.title,content:t.article.content,thumbnailUrl:t.article.thumbnailUrl,status:t.article.status,isFeatured:t.article.isFeatured}).then(function(t){window.localStorage.removeItem("markdownContent"),e.location=t.data.url}).catch(function(o){t.isPosting=!1,t.errors=o.data.errors}))}}])},xeH2:function(t,o){t.exports=jQuery}},[["oLuy","d41d","970b","c5ee","1090","0040","91fe","14aa","b76c"]]]);