if (pathname==null||pathname=="/book"||pathname=="/book/list") { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var bookEntityList = getHttpJson("/app/book/list?channelEntityId="+channelEntity["channelEntityId"]+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=book&sct=0&v=1602264172000")) ; breadcrumbsChannel(channelEntity) ; bookMenu(channelEntity) ; document.write(getHttp("/body?name=book&sct=1&v=1602264172000")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=book&sct=7&v=1602264172000")) ;document.write(page-1) ;document.write(getHttp("/body?name=book&sct=8&v=1602264172000")) ;document.write(channelEntity["channelEntityId"]) ;document.write(getHttp("/body?name=book&sct=9&v=1602264172000")) ; } if (bookEntityList.length>10) { document.write(getHttp("/body?name=book&sct=10&v=1602264172000")) ;document.write(page+1) ;document.write(getHttp("/body?name=book&sct=11&v=1602264172000")) ;document.write(channelEntity["channelEntityId"]) ;document.write(getHttp("/body?name=book&sct=12&v=1602264172000")) ; } document.write(getHttp("/body?name=book&sct=13&v=1602264172000")) ; } else if (pathname=="/book/view") { document.write(getHttp("/body?name=book&sct=14&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=15&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookMenu(channelEntity,bookEntity) ; document.write(getHttp("/body?name=book&sct=16&v=1602264172000")) ;document.write(bookEntity["name"]) ;document.write(getHttp("/body?name=book&sct=17&v=1602264172000")) ;document.write(getHttp("/app/book/viewlongdescription?bookEntityId="+bookEntity["bookEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=book&sct=18&v=1602264172000")) ; if (sessionChannelUserEntity["editor"]||sessionChannelUserEntity["administrator"]) { var bookUserEntity = getHttpJson("/app/book/user/view?bookEntityId="+bookEntity["bookEntityId"]+"&userEntityId="+bookEntity["userEntityId"]+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=book&sct=19&v=1602264172000")) ;document.write(bookEntity["rating"]) ;document.write(getHttp("/body?name=book&sct=20&v=1602264172000")) ;document.write(bookUserEntity["bookUserEntityId"]) ;document.write(getHttp("/body?name=book&sct=21&v=1602264172000")) ;document.write(bookUserEntity["label"]) ;document.write(getHttp("/body?name=book&sct=22&v=1602264172000")) ;document.write(bookEntity["createDate"]) ;document.write(getHttp("/body?name=book&sct=23&v=1602264172000")) ;document.write(bookEntity["modifyDate"]) ;document.write(getHttp("/body?name=book&sct=24&v=1602264172000")) ; } document.write(getHttp("/body?name=book&sct=25&v=1602264172000")) ; } else if (pathname=="/book/create"&&validSession(session)) { document.write(getHttp("/body?name=book&sct=26&v=1602264172000")) ; breadcrumbsChannel(channelEntity) ; bookMenu(channelEntity) ; document.write(getHttp("/body?name=book&sct=27&v=1602264172000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=book&sct=28&v=1602264172000")) ; var channelEntityList = getHttpJson("/app/channel/list?page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=book&sct=29&v=1602264172000")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/book/view?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createBookFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else if (pathname=="/book/update"&&sessionChannelUserEntity&&(sessionChannelUserEntity["editor"]||sessionChannelUserEntity["administrator"])) { document.write(getHttp("/body?name=book&sct=35&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=36&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookMenu(channelEntity,bookEntity) ; document.write(getHttp("/body?name=book&sct=37&v=1602264172000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=book&sct=38&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(getHttp("/body?name=book&sct=39&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=40&v=1602264172000")) ;document.write(bookEntity["name"]) ;document.write(getHttp("/body?name=book&sct=41&v=1602264172000")) ; var channelEntityList = getHttpJson("/app/channel/list?page=-1&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=book&sct=42&v=1602264172000")) ; for (var i=0 ; i"+data["error"]) ; else { window.location = "/book/view?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateBookFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else if (pathname=="/book/updateshort"&&sessionChannelUserEntity&&(sessionChannelUserEntity["editor"]||sessionChannelUserEntity["administrator"])) { document.write(getHttp("/body?name=book&sct=48&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=49&v=1602264172000")) ; breadcrumbsChannel(bookEntity) ; bookUserMenu(bookEntity) ; document.write(getHttp("/body?name=book&sct=50&v=1602264172000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=book&sct=51&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(getHttp("/body?name=book&sct=52&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=53&v=1602264172000")) ;document.write(getHttp("/app/book/viewshortdescription?bookEntityId="+bookEntity["bookEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=book&sct=54&v=1602264172000")) ; $("#updateBookShortForm").on ( "submit", function (event) { event.preventDefault() ; $.ajax ( { url: "/app/book/updateshortdescription", method: "POST", async: false, data: $("#updateBookShortForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateBookShortFormMessage").html("

"+data["error"]) ; else { window.location = "/book/view?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateBookShortFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else if (pathname=="/book/updatelong"&&sessionChannelUserEntity&&(sessionChannelUserEntity["editor"]||sessionChannelUserEntity["administrator"])) { document.write(getHttp("/body?name=book&sct=55&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=56&v=1602264172000")) ; breadcrumbsChannel(bookEntity) ; bookUserMenu(bookEntity) ; document.write(getHttp("/body?name=book&sct=57&v=1602264172000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=book&sct=58&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(getHttp("/body?name=book&sct=59&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=60&v=1602264172000")) ;document.write(getHttp("/app/book/viewlongdescription?bookEntityId="+bookEntity["bookEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=book&sct=61&v=1602264172000")) ; $("#updateBookLongForm").on ( "submit", function (event) { event.preventDefault() ; $.ajax ( { url: "/app/book/updatelongdescription", method: "POST", async: false, data: $("#updateBookLongForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateBookLongFormMessage").html("

"+data["error"]) ; else { window.location = "/book/view?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateBookLongFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else if (pathname=="/book/delete"&&sessionChannelUserEntity&&(sessionChannelUserEntity["editor"]||sessionChannelUserEntity["administrator"])) { document.write(getHttp("/body?name=book&sct=62&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=63&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookMenu(channelEntity,bookEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=book&sct=64&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=65&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(getHttp("/body?name=book&sct=66&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=67&v=1602264172000")) ; } else { $.ajax ( { url: "/app/book/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"bookEntityId":bookEntity["bookEntityId"]}, success: function (data) { if (data["error"]) $("#channelBookDeleteMessage").html("

"+data["error"]) ; else { window.location = "/channel/view?channelEntityId="+data["channelEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#channelBookDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=book&sct=68&v=1602264172000")) ; } else if (pathname=="/book/subscribe"&&validSession(session)) { document.write(getHttp("/body?name=book&sct=69&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=70&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookMenu(channelEntity,bookEntity) ; $.ajax ( { url: "/app/book/user/subscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"bookEntityId":bookEntity["bookEntityId"]}, success: function (data) { if (data["error"]) $("#channelBookDeleteMessage").html("

"+data["error"]) ; else { window.location = "/book/view?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#channelBookDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=book&sct=71&v=1602264172000")) ; } else if (pathname=="/book/unsubscribe"&&validSession(session)) { document.write(getHttp("/body?name=book&sct=72&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=73&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookMenu(channelEntity,bookEntity) ; $.ajax ( { url: "/app/book/user/unsubscribe", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"bookEntityId":bookEntity["bookEntityId"]}, success: function (data) { if (data["error"]) $("#channelBookUnsubscribeMessage").html("

"+data["error"]) ; else { window.location = "/book/view?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#channelBookUnsubscribeMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; document.write(getHttp("/body?name=book&sct=74&v=1602264172000")) ; } else if (pathname=="/book/rate"&&validSession(session)) { document.write(getHttp("/body?name=book&sct=75&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=76&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookMenu(channelEntity,bookEntity) ; document.write(getHttp("/body?name=book&sct=77&v=1602264172000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=book&sct=78&v=1602264172000")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=book&sct=79&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(getHttp("/body?name=book&sct=80&v=1602264172000")) ;document.write(channelUserEntity&&channelUserEntity["rating"]=="0"?"checked":"") ;document.write(getHttp("/body?name=book&sct=81&v=1602264172000")) ;document.write(channelUserEntity&&channelUserEntity["rating"]=="1"?"checked":"") ;document.write(getHttp("/body?name=book&sct=82&v=1602264172000")) ;document.write(channelUserEntity&&channelUserEntity["rating"]=="2"?"checked":"") ;document.write(getHttp("/body?name=book&sct=83&v=1602264172000")) ;document.write(channelUserEntity&&channelUserEntity["rating"]=="3"?"checked":"") ;document.write(getHttp("/body?name=book&sct=84&v=1602264172000")) ;document.write(channelUserEntity&&channelUserEntity["rating"]=="4"?"checked":"") ;document.write(getHttp("/body?name=book&sct=85&v=1602264172000")) ;document.write(channelUserEntity&&channelUserEntity["rating"]=="5"?"checked":"") ;document.write(getHttp("/body?name=book&sct=86&v=1602264172000")) ; $("#rateBookForm").on ( "submit", function (event) { event.preventDefault() ; $.ajax ( { url: "/app/channel/rate", method: "POST", async: false, data: $("#rateBookForm").serializeArray(), success: function (data) { if (data["error"]) $("#rateBookFormMessage").html("

"+data["error"]) ; else { window.location = "/book/view?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#rateBookFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else if (pathname=="/book/comment"&&validSession(session)) { document.write(getHttp("/body?name=book&sct=87&v=1602264172000")) ;document.write(channelEntity["label"]) ;document.write(getHttp("/body?name=book&sct=88&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookMenu(channelEntity,bookEntity) ; document.write(getHttp("/body?name=book&sct=89&v=1602264172000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=book&sct=90&v=1602264172000")) ;document.write(session["userEntityId"]) ;document.write(getHttp("/body?name=book&sct=91&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(getHttp("/body?name=book&sct=92&v=1602264172000")) ;document.write(getHttp("/app/book/user/viewlongdescription?channelEntityId="+channelEntity["channelEntityId"]+"&userEntityId="+session["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=book&sct=93&v=1602264172000")) ; $("#commentBookForm").on ( "submit", function (event) { event.preventDefault() ; $.ajax ( { url: "/app/book/comment", method: "POST", async: false, data: $("#commentBookForm").serializeArray(), success: function (data) { if (data["error"]) $("#commentBookFormMessage").html("

"+data["error"]) ; else { window.location = "/book/view?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#commentBookFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else if ((pathname=="/book/user"||pathname=="/book/user/list")&&sessionChannelUserEntity&&sessionChannelUserEntity["administrator"]) { var page = parseInt(getQueryParameter("page")) ; if (isNaN(page)) page = 0 ; var criteria = getQueryParameter("criteria") ; document.write(getHttp("/body?name=book&sct=94&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=95&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookUserMenu(channelEntity,channelUserEntity,bookEntity) ; var bookUserEntityList = getHttpJson("/app/book/user/list?bookEntityId="+bookEntity["bookEntityId"]+(criteria?("&criteria="+criteria):"")+"&page="+page+"&sessionToken="+session["sessionToken"]) ; document.write(getHttp("/body?name=book&sct=96&v=1602264172000")) ; for (i=0 ; i<10&&i0) { document.write(getHttp("/body?name=book&sct=103&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=book&sct=104&v=1602264172000")) ;document.write(page-1) ;document.write(getHttp("/body?name=book&sct=105&v=1602264172000")) ; } if (bookUserEntityList.length>10) { document.write(getHttp("/body?name=book&sct=106&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(criteria?("&criteria="+criteria):"") ;document.write(getHttp("/body?name=book&sct=107&v=1602264172000")) ;document.write(page+1) ;document.write(getHttp("/body?name=book&sct=108&v=1602264172000")) ; } document.write(getHttp("/body?name=book&sct=109&v=1602264172000")) ; } else if (pathname=="/book/user/view"&&sessionChannelUserEntity&&sessionChannelUserEntity["administrator"]) { document.write(getHttp("/body?name=book&sct=110&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=111&v=1602264172000")) ;document.write(bookUserEntity["label"]) ;document.write(getHttp("/body?name=book&sct=112&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookUserMenu(channelEntity,channelUserEntity,bookEntity,bookUserEntity) ; if (bookUserEntity["userEntityId"]>0) { document.write(getHttp("/body?name=book&sct=113&v=1602264172000")) ;document.write(bookUserEntity["userEntityId"]) ;document.write(getHttp("/body?name=book&sct=114&v=1602264172000")) ;document.write(bookUserEntity["version"]) ;document.write(getHttp("/body?name=book&sct=115&v=1602264172000")) ;document.write(bookUserEntity["label"]) ;document.write(getHttp("/body?name=book&sct=116&v=1602264172000")) ; } document.write(getHttp("/body?name=book&sct=117&v=1602264172000")) ; if (bookUserEntity["firstName"]) { document.write(getHttp("/body?name=book&sct=118&v=1602264172000")) ;document.write(bookUserEntity["firstName"]) ;document.write(getHttp("/body?name=book&sct=119&v=1602264172000")) ; } if (bookUserEntity["lastName"]) { document.write(getHttp("/body?name=book&sct=120&v=1602264172000")) ;document.write(bookUserEntity["lastName"]) ;document.write(getHttp("/body?name=book&sct=121&v=1602264172000")) ; } if (bookUserEntity["email"]) { document.write(getHttp("/body?name=book&sct=122&v=1602264172000")) ;document.write(bookUserEntity["email"]) ;document.write(getHttp("/body?name=book&sct=123&v=1602264172000")) ;document.write(bookUserEntity["email"]) ;document.write(getHttp("/body?name=book&sct=124&v=1602264172000")) ; } document.write(getHttp("/body?name=book&sct=125&v=1602264172000")) ;document.write(bookUserEntity["subscriber"]) ;document.write(getHttp("/body?name=book&sct=126&v=1602264172000")) ;document.write(bookUserEntity["createDate"]) ;document.write(getHttp("/body?name=book&sct=127&v=1602264172000")) ;document.write(bookUserEntity["modifyDate"]) ;document.write(getHttp("/body?name=book&sct=128&v=1602264172000")) ;document.write(getHttp("/app/user/view/viewlongdescription?userEntityId="+bookUserEntity["userEntityId"]+"&sessionToken="+session["sessionToken"])) ;document.write(getHttp("/body?name=book&sct=129&v=1602264172000")) ; } else if (pathname=="/book/user/create"&&sessionChannelUserEntity&&sessionChannelUserEntity["administrator"]) { document.write(getHttp("/body?name=book&sct=130&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=131&v=1602264172000")) ; breadcrumbsChannel(channelEntity) ; bookUserMenu(channelEntity,channelUserEntity) ; document.write(getHttp("/body?name=book&sct=132&v=1602264172000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=book&sct=133&v=1602264172000")) ;document.write(bookEntity["bookEntityId"]) ;document.write(getHttp("/body?name=book&sct=134&v=1602264172000")) ;document.write(bookUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=book&sct=135&v=1602264172000")) ; $("#createBookUserForm").on ( "submit", function (event) { event.preventDefault() ; $.ajax ( { url: "/app/book/user/create", method: "POST", async: false, data: $("#createBookUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#createBookUserFormMessage").html("

"+data["error"]) ; else { window.location = "/book/user/view?bookUserEntityId="+data["bookUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#createBookUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else if (pathname=="/book/user/update"&&sessionChannelUserEntity&&sessionChannelUserEntity["administrator"]) { document.write(getHttp("/body?name=book&sct=136&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=137&v=1602264172000")) ;document.write(bookUserEntity["label"]) ;document.write(getHttp("/body?name=book&sct=138&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookUserMenu(channelEntity,channelUserEntity,bookEntity,bookUserEntity) ; document.write(getHttp("/body?name=book&sct=139&v=1602264172000")) ;document.write(session["sessionToken"]) ;document.write(getHttp("/body?name=book&sct=140&v=1602264172000")) ;document.write(bookUserEntity["bookUserEntityId"]) ;document.write(getHttp("/body?name=book&sct=141&v=1602264172000")) ; if (bookUserEntity["firstName"]) { document.write(getHttp("/body?name=book&sct=142&v=1602264172000")) ;document.write(bookUserEntity["firstName"]) ;document.write(getHttp("/body?name=book&sct=143&v=1602264172000")) ; } if (bookUserEntity["lastName"]) { document.write(getHttp("/body?name=book&sct=144&v=1602264172000")) ;document.write(bookUserEntity["lastName"]) ;document.write(getHttp("/body?name=book&sct=145&v=1602264172000")) ; } if (bookUserEntity["email"]) { document.write(getHttp("/body?name=book&sct=146&v=1602264172000")) ;document.write(bookUserEntity["email"]) ;document.write(getHttp("/body?name=book&sct=147&v=1602264172000")) ;document.write(bookUserEntity["email"]) ;document.write(getHttp("/body?name=book&sct=148&v=1602264172000")) ; } document.write(getHttp("/body?name=book&sct=149&v=1602264172000")) ;document.write(bookUserEntity["subscriber"]?"checked":"") ;document.write(getHttp("/body?name=book&sct=150&v=1602264172000")) ; $("#updateBookUserForm").on ( "submit", function (event) { event.preventDefault() ; $.ajax ( { url: "/app/book/user/update", method: "POST", async: false, data: $("#updateBookUserForm").serializeArray(), success: function (data) { if (data["error"]) $("#updateBookUserFormMessage").html("

"+data["error"]) ; else { window.location = "/book/user/view?bookUserEntityId="+data["bookUserEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#updateBookUserFormMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } ) ; } else if (pathname=="/book/user/delete"&&sessionChannelUserEntity&&sessionChannelUserEntity["administrator"]) { document.write(getHttp("/body?name=book&sct=151&v=1602264172000")) ;document.write(bookEntity["label"]) ;document.write(getHttp("/body?name=book&sct=152&v=1602264172000")) ;document.write(bookUserEntity["label"]) ;document.write(getHttp("/body?name=book&sct=153&v=1602264172000")) ; breadcrumbsChannel(channelEntity,bookEntity) ; bookUserMenu(channelEntity,channelUserEntity,bookEntity,bookUserEntity) ; if (!getQueryParameter("confirm")) { document.write(getHttp("/body?name=book&sct=154&v=1602264172000")) ;document.write(bookUserEntity["bookUserEntityId"]) ;document.write(getHttp("/body?name=book&sct=155&v=1602264172000")) ; if (bookUserEntity["firstName"]) { document.write(getHttp("/body?name=book&sct=156&v=1602264172000")) ;document.write(bookUserEntity["firstName"]) ;document.write(getHttp("/body?name=book&sct=157&v=1602264172000")) ; } if (bookUserEntity["lastName"]) { document.write(getHttp("/body?name=book&sct=158&v=1602264172000")) ;document.write(bookUserEntity["lastName"]) ;document.write(getHttp("/body?name=book&sct=159&v=1602264172000")) ; } if (bookUserEntity["email"]) { document.write(getHttp("/body?name=book&sct=160&v=1602264172000")) ;document.write(bookUserEntity["email"]) ;document.write(getHttp("/body?name=book&sct=161&v=1602264172000")) ;document.write(bookUserEntity["email"]) ;document.write(getHttp("/body?name=book&sct=162&v=1602264172000")) ; } document.write(getHttp("/body?name=book&sct=163&v=1602264172000")) ; } else { $.ajax ( { url: "/app/book/user/delete", method: "POST", async: false, data: {"sessionToken":session["sessionToken"],"bookUserEntityId":bookUserEntity["bookUserEntityId"]}, success: function (data) { if (data["error"]) $("#channelBookUserDeleteMessage").html("

"+data["error"]) ; else { window.location = "/book/user/list?bookEntityId="+data["bookEntityId"] ; } }, error: function (jqXHR, textStatus, errorThrown) { $("#channelBookUserDeleteMessage").html("

Failure: "+textStatus+" / "+errorThrown) ; } } ) ; } document.write(getHttp("/body?name=book&sct=164&v=1602264172000")) ; } else { document.write(getHttp("/body?name=book&sct=165&v=1602264172000")) ; breadcrumbsChannel(channelEntity) ; channelMenu(channelEntity) ; document.write(getHttp("/body?name=book&sct=166&v=1602264172000")) ; }