import { Injectable, Inject } from 'ng-metadata/core';
import { Fireside_Post } from './../../../../../lib/gj-lib-client/components/fireside/post/post-model';
import template from 'html!./edit.html';

@Injectable()
export class DevlogPostEdit
{
	constructor(
		@Inject( '$modal' ) private $modal: any
	)
	{
	}

	show( post: Fireside_Post ): ng.IPromise<Fireside_Post>
	{
		const modalInstance = this.$modal.open( {
			keyboard: false,
			backdrop: 'static',
			template,
			controller: 'Devlog.Post.EditModalCtrl',
			controllerAs: '$ctrl',
			resolve: {
				// They may load this on the game page without having dash stuff loaded in yet.
				init: [ '$ocLazyLoad', ( $ocLazyLoad: oc.ILazyLoad ) => $ocLazyLoad.load( '/app/modules/dash.js' ) ],
				post: () => post,
			},
		} );

		return modalInstance.result;
	}
}

import { Injectable, Inject } from 'ng-metadata/core';
import { Fireside_Post } from './../../../../../lib/gj-lib-client/components/fireside/post/post-model';
import template from 'html!./edit.html';

@Injectable()
export class DevlogPostEdit
{
	constructor(
		@Inject( '$modal' ) private $modal: any
	)
	{
	}

	show( post: Fireside_Post ): ng.IPromise<Fireside_Post>
	{
		const modalInstance = this.$modal.open( {
			template,
			controller: 'Devlog.Post.EditModalCtrl',
			controllerAs: '$ctrl',
			resolve: {
				// They may load this on the game page without having dash stuff loaded in yet.
				init: [ '$ocLazyLoad', ( $ocLazyLoad: oc.ILazyLoad ) => $ocLazyLoad.load( '/app/modules/dash.js' ) ],
				post: () => post,
			},
		} );

		return modalInstance.result;
	}
}

--- 
+++ 
@@ -14,6 +14,8 @@
 	show( post: Fireside_Post ): ng.IPromise<Fireside_Post>
 	{
 		const modalInstance = this.$modal.open( {
+			keyboard: false,
+			backdrop: 'static',
 			template,
 			controller: 'Devlog.Post.EditModalCtrl',
 			controllerAs: '$ctrl',
Make devlog post add/edit more sticky.
This way you don't accidentally close it in the middle of writing and composing a post.
