annotate 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
rev   line source
Daniel@0 1 "use strict";
Daniel@0 2
Daniel@0 3 App.module("RepresentationModule", function(RepresentationModule, App, Backbone, Marionette, $, _, Logger) {
Daniel@0 4
Daniel@0 5 RepresentationModule.addInitializer(function(options){
Daniel@0 6
Daniel@0 7 RepresentationModule.registerMaster({
Daniel@0 8 id: "entity._default",
Daniel@0 9 inherit: "entity._",
Daniel@0 10
Daniel@0 11
Daniel@0 12 // =================================================================
Daniel@0 13 // vis instance rendering
Daniel@0 14
Daniel@0 15
Daniel@0 16 // -----------------------------------------------------------------
Daniel@0 17 // debug mode
Daniel@0 18
Daniel@0 19 _mapDerivedVisInstanceDataAttributesToDebugAPIQueryBoxes: function (viewMaster) {
Daniel@0 20 if (viewMaster.options.overlayPerspectiveId) {
Daniel@0 21 return [["top", "base", "apiRequestURI", "apiResponse"],
Daniel@0 22 ["bottom", "overlay", "apiRequestURI", "apiResponse"]];
Daniel@0 23 } else {
Daniel@0 24 return [["everywhere", "base", "apiRequestURI", "apiResponse"]];
Daniel@0 25 }
Daniel@0 26 }
Daniel@0 27 });
Daniel@0 28 });
Daniel@0 29 }, Logger);