comparison src/DML/MainVisBundle/Resources/assets/marionette/modules/RepresentationModule/RepresentationModule.21-Master.entity._default.js @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:493bcb69166c
1 "use strict";
2
3 App.module("RepresentationModule", function(RepresentationModule, App, Backbone, Marionette, $, _, Logger) {
4
5 RepresentationModule.addInitializer(function(options){
6
7 RepresentationModule.registerMaster({
8 id: "entity._default",
9 inherit: "entity._",
10
11
12 // =================================================================
13 // vis instance rendering
14
15
16 // -----------------------------------------------------------------
17 // debug mode
18
19 _mapDerivedVisInstanceDataAttributesToDebugAPIQueryBoxes: function (viewMaster) {
20 if (viewMaster.options.overlayPerspectiveId) {
21 return [["top", "base", "apiRequestURI", "apiResponse"],
22 ["bottom", "overlay", "apiRequestURI", "apiResponse"]];
23 } else {
24 return [["everywhere", "base", "apiRequestURI", "apiResponse"]];
25 }
26 }
27 });
28 });
29 }, Logger);