From bc2ce00d55741de7c91d41dd3bc6e8e515c3f9e9 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 20 May 2016 07:57:59 -0700 Subject: check for saveNoteState function --- views/partials/syndication-js.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'views/partials/syndication-js.php') diff --git a/views/partials/syndication-js.php b/views/partials/syndication-js.php index cd50c3b..90331ba 100644 --- a/views/partials/syndication-js.php +++ b/views/partials/syndication-js.php @@ -20,7 +20,9 @@ function reload_syndications() { function bind_syndication_buttons() { $("#syndication-container button").unbind("click").click(function(){ $(this).toggleClass('btn-info'); - saveNoteState(); + if(window.saveNoteState) { + saveNoteState(); + } return false; }); } -- cgit v1.2.3