From dad5f101723cc2d4126718bccca08dcb9c5c1cb1 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 15 Jul 2015 13:54:40 +0200 Subject: [PATCH] Fix PNotify invokation. --- accountant/frontend/static/js/app.js | 2 +- accountant/frontend/static/js/scheduler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index 60b56e0..933d8e2 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -36,7 +36,7 @@ var accountantApp = angular.module("accountantApp", [ "responseError": function(response) { // TODO Intercept Authentication Required error - $.pnotify({ + new PNotify({ type: "error", title: response.data.title, text: response.data.text, diff --git a/accountant/frontend/static/js/scheduler.js b/accountant/frontend/static/js/scheduler.js index f7908b7..31025c6 100644 --- a/accountant/frontend/static/js/scheduler.js +++ b/accountant/frontend/static/js/scheduler.js @@ -96,7 +96,7 @@ accountantApp.controller( } $http.put(url, angular.toJson(operation)).success(function(data) { - $.pnotify({ + new PNotify({ type: "success", title: "Save", text: data