From fda2204ff8ffd10fddbbdc9a1682c827a25eb830 Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Fri, 18 Mar 2016 14:17:40 +0530 Subject: [PATCH] fix coffee script via patch --- debian/patches/0109-fix-coffee-script.patch | 37 +++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 38 insertions(+) create mode 100644 debian/patches/0109-fix-coffee-script.patch diff --git a/debian/patches/0109-fix-coffee-script.patch b/debian/patches/0109-fix-coffee-script.patch new file mode 100644 index 0000000000..d9aaeddb50 --- /dev/null +++ b/debian/patches/0109-fix-coffee-script.patch @@ -0,0 +1,37 @@ +From b2c641de219d3aba8f1fce758b2f05ca8233e2d6 Mon Sep 17 00:00:00 2001 +From: Marin Jankovski +Date: Fri, 26 Feb 2016 13:22:35 +0100 +Subject: [PATCH] Fix syntax error in autosave coffeescript. + +--- + app/assets/javascripts/autosave.js.coffee | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/app/assets/javascripts/autosave.js.coffee b/app/assets/javascripts/autosave.js.coffee +index 5d3fe81..28f8e10 100644 +--- a/app/assets/javascripts/autosave.js.coffee ++++ b/app/assets/javascripts/autosave.js.coffee +@@ -16,11 +16,11 @@ class @Autosave + + try + text = window.localStorage.getItem @key +- catch ++ catch e + return + + @field.val text if text?.length > 0 +- @field.trigger "input" ++ @field.trigger "input" + + save: -> + return unless window.localStorage? +@@ -35,5 +35,5 @@ class @Autosave + reset: -> + return unless window.localStorage? + +- try ++ try + window.localStorage.removeItem @key +-- +libgit2 0.24.0 + diff --git a/debian/patches/series b/debian/patches/series index 0b2c3e66aa..cf8b543ac5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -16,5 +16,6 @@ 0100-remove-development-test.patch 0102-loosen-octokit.patch 0108-make-mysql-optional.patch +0109-fix-coffee-script.patch source-init-functions.patch pid-log-paths.patch