@@ -4,9 +4,9 @@ window.MonetizationMetricsView = countlyView.extend({
44
55 var self = this ;
66
7- if ( self . template && self . bigNumbersTemplate ) {
7+ if ( self . template && self . bigNumbersTemplate ) {
88 return $ . when ( countlyMonetization . initialize ( ) ) ;
9- } else {
9+ } else {
1010 return $ . when ( $ . get ( countlyGlobal [ "path" ] + '/video-intelligence-monetization/templates/metrics.html' , function ( src ) {
1111 self . template = Handlebars . compile ( src ) ;
1212 } ) , $ . get ( countlyGlobal [ "path" ] + '/video-intelligence-monetization/templates/bignumbers.html' , function ( src ) {
@@ -122,10 +122,10 @@ window.MonetizationMetricsView = countlyView.extend({
122122window . monetizationIntegrationView = countlyView . extend ( {
123123 beforeRender : function ( ) {
124124 var self = this ;
125- if ( ! self . integrationTemplate ) {
125+ if ( ! self . integrationTemplate ) {
126126 return $ . when ( $ . get ( countlyGlobal [ "path" ] + '/video-intelligence-monetization/templates/integration.html' , function ( src ) {
127127 self . integrationTemplate = Handlebars . compile ( src ) ;
128- } ) ) . then ( function ( ) { } ) ;
128+ } ) ) . then ( function ( ) { } ) ;
129129 }
130130 } ,
131131 renderCommon : function ( isRefresh ) {
@@ -177,6 +177,9 @@ $(document).ready(function() {
177177 if ( ! production ) {
178178 CountlyHelpers . loadJS ( "video-intelligence-monetization/javascripts/iframeResizer.js" ) ;
179179 }
180-
181- $ ( '.sidebar-menu' ) . append ( folder + wrapper ) ;
180+ if ( $ ( '.sidebar-menu #management-menu' ) . length ) {
181+ $ ( '.sidebar-menu #management-menu' ) . before ( folder + wrapper ) ;
182+ } else {
183+ $ ( '.sidebar-menu' ) . append ( folder + wrapper ) ;
184+ }
182185} ) ;
0 commit comments