Showing the changes to Source/Libraries/GSF.Web/Model/Scripts/pagedViewModel.js (1 of 19 files). Show all
Unified · Split
| @@ -25,6 +25,22 @@ · 24 unmodified lines | ||
| 25 | 25 | // Paged view model base class scripts |
| 26 | 26 | "use strict"; |
| 27 | 27 | |
| 28 | +if (typeof jQuery === "undefined") { | |
| 29 | + throw new Error("pageViewModel script requires jQuery - make sure jquery.js is loaded first"); | |
| 30 | +} | |
| 31 | + | |
| 32 | +if (typeof Cookies.get === "undefined") { | |
| 33 | + throw new Error("pageViewModel script requires js.cookie - make sure js.cookie.js is loaded first"); | |
| 34 | +} | |
| 35 | + | |
| 36 | +if (typeof ko === "undefined") { | |
| 37 | + throw new Error("pageViewModel script requires knockout - make sure knockout.js is loaded first"); | |
| 38 | +} | |
| 39 | + | |
| 40 | +if (typeof Dictionary === "undefined") { | |
| 41 | + throw new Error("pageViewModel script requires gsf.web.client - make sure gsf.web.client.js is loaded first"); | |
| 42 | +} | |
| 43 | + | |
| 28 | 44 | var RecordMode = { |
| 29 | 45 | View: 0, |
| 30 | 46 | Edit: 1, |