{"version":3,"sources":["BaseDataModule.js","ExpandedModule.js","QuickLinks.js","WatchlistModals.js","Plugin-Paging.js","DashboardPage.js","ResearchNotes.js","NewsAndAnalysis.js","FeaturedCommentary.js","MyWatchlistsAndPortfolios.js","BaseAnalytics.js","DashboardAnalytics.js"],"names":["mod","modules","define","fn","$window","$documentBody","prototype","init","$","window","document","body","this","el","find","tooltip","maxWidth","defaultValue","handle_moduleExpand","id","extraContext","widgetId","$modalWrapper","append","modal","backdrop","show","off","on","$modal","currentTop","position","top","windowTop","scrollTop","spacing","css","addClass","e","stopPropagation","removeClass","widgetClass","data","dispose","remove","widgetapi","load","widgets","appId","context","extend","getContext","success","ajax_error","xhr","events",".module-error button","click","$el","lastRequest","ajax","reload",".module-options [data-size]:not(.selected):not(.module-expand-link)","showLoading","newSize","attr","type","newId","getKeyFromTypeSize","observer","trigger",".module-hide",".view-toggle","parents","toggleClass","text",".module-expand-link","JSON","parse",".action-download","#module_download .module-close","cancelBubble","params","initTooltips","html",".module-close","closest","preventDefault","base","onEnter","self","empty","manualClose","setTimeout","$wrapper","length","is","wsodIssue","watchlistId","URLs","getURLs","createNewWatchlist","renameWatchlist","deleteWatchlist","addSymbol","addMultipleSymbol","addIssue","removeIssues","home","sortTable","GetWatchListHomeURL","BaseURL","resolveUrl","Parameters","stringify","ID","EncodedParameters","toBase64","goHome","location","showModal","selector","containerEl","$currentContent","margin-left","width","newWatchlistName","val","Inputs","NewName","Symbol","dataType","url","complete","jqXHR","textStatus","Response","closeModal","WatchlistID","error","errorThrown","AddIssueOrSymbolToWL","Issue","IsIssue","callback","inputs","WatchListID","WSODIssue","sortDirection","SortDirection","sortField","SortField","URL","response","clearErrors","showError","hide","button[data-action]","action","button[data-action='cancel']",".modalForm select","change",".pager-wrap [data-pageindex]:not([disabled=disabled])","PageIndex",".pager-wrap select.pager-select-page","attachSortable","sortable","forcePlaceholderSize","handle","containment","revert","tolerance","cursor","scroll","defaultItem","observables","module - removed","module",".module-minimize","parentModule","moduleContent",".module-maximize","$noteBodies","DotDotHeight","dotdotdot","height","wrap","addPlugin","$articles","i","Top","Summary","SummaryTop","ReadMoreHeight","TopSectionHeight","TotalHeight","MaxContentHeight","SelectedTab","SelectedListId","WatchlistPlugin","#watchlist_selector","a.editWatchlist","[data-action='createwatchlist']","category"],"mappings":"AAEAA,IAAAC,QAAAC,OAAA,aAAA,SAAAC,GAEA,GAAAC,GAAA,KACAC,EAAA,IAEAF,GAAAG,UAAAC,KAAA,WAEAH,EAAAI,EAAAC,QACAJ,EAAAG,EAAAE,SAAAC,MAGAC,KAAAC,GAAAC,KAAA,kBAAAC,SACAC,SAAA,MAIAJ,KAAAC,GAAAC,KAAA,sBAAAG,gBAGAd,EAAAG,UAAAY,oBAAA,SAAAC,EAAAC,GACAA,EAAAA,KAEA,IAAAC,GAAA,UAAAF,EAGAG,EAAAd,EAAA,uEAAAe,OAEAf,EAAA,sCAAAa,EAAA,SAAAG,OACAC,SAAA,SACAC,MAAA,GAGAJ,GACAK,IAAA,iBACAC,GAAA,gBAAA,WAEA,GAAAC,GAAArB,EAAAI,MACAkB,EAAAD,EAAAE,WAAAC,IACAC,EAAA7B,EAAA8B,YACAC,EAAA,GACAN,GAAAO,IAAA,MAAAN,EAAAG,EAAAE,GAEA9B,EAAAgC,SAAA,aAEAV,IAAA,oBACAC,GAAA,mBAAA,SAAAU,GACAA,EAAAC,oBAEAZ,IAAA,iBACAC,GAAA,gBAAA,WACAvB,EAAAmC,YAAA,UAGA,IAAAC,GAAAjC,EAAA,IAAAa,GAAAqB,KAAA,SAEAD,IACAA,EAAAE,SAAA,GAGAnC,EAAAI,MAAAgC,WAEApB,MAAA,QAIAxB,IAAAC,QAAA4C,UAAAC,MACAC,SACAC,MAAA7B,EACA8B,QAAAzC,EAAA0C,QAAA,KAAAtC,KAAAuC,aAAA/B,IAEAgC,QAAA,WACA9B,EAAAkB,YAAA,eAMArC,EAAAG,UAAA+C,WAAA,SAAAC,GAEA1C,KAAAC,GAAAC,KAAA,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,IAAAiK,GAAAvI,EAAA5C,KAAA,iBAAA2K,SAEAS,EAAAF,EAAAF,EACAK,EAAAzI,EAAA+H,SACAW,EAAAD,EAAAD,EAAAD,EAAA,EAEAF,GAAAP,WACAC,OAAAW,EACAzB,UAAA,EACAe,KAAA,eCzBA1L,IAAAC,QAAAC,OAAA,4BAAA,aAAA,SAAAC,GAEAA,EAAAG,UAAAC,KAAA,SAAA2E,GACAtE,KAAA4E,KAAA,OAAAN,GAEAtE,KAAAyL,YAAA,aACAzL,KAAA0L,eAAA9L,EAAA,uBAAAuH,IAAA7C,EAAAgB,aAEAtF,KAAA+K,UAAA,iBACA/K,KAAA2L,gBAAA3L,KAAA+K,UAAA,oBAGAxL,EAAAG,UAAA6C,WAAA,WACA,OACAkJ,YAAAzL,KAAAyL,YACAC,eAAA1L,KAAA0L,iBAIAnM,EAAAG,UAAAiD,QACAiJ,uBACAvC,OAAA,SAAA3H,EAAAoB,GACA9C,KAAA0L,eAAA5I,EAAAqE,MAEAnH,KAAAiD,QACAsG,UAAA,MAIAsC,mBACAhJ,MAAA,SAAAnB,EAAAoB,GACA,GAAA4I,GAAA9L,EAAA,uBAAAuH,KACAnH,MAAA2L,gBAAAjF,OAAAgF,KAGAI,mCACAjJ,MAAA,SAAAnB,EAAAoB,GACA9C,KAAA2L,gBAAA/E,UAAA,wBAAAhH,EAAA,iDCrCAR,IAAAC,QAAAC,OAAA,gBAAA,SAAAC,MCAAH,IAAAC,QAAAC,OAAA,qBAAA,gBAAA,SAAAC,GAEAA,EAAAG,UAAAC,KAAA,SAAA2E,GACAtE,KAAA+L,SAAA","file":"dashboard.min.js","sourcesContent":["/*global mod*/\r\n\r\nmod.modules.define(\"BaseModule\", function(fn) {\r\n\r\n\tvar $window = null;\r\n\tvar $documentBody = null;\r\n\r\n\tfn.prototype.init = function() {\r\n\t\t// Cache\r\n\t\t$window = $(window);\r\n\t\t$documentBody = $(document.body);\r\n\r\n\t\t// Init the tooltips\r\n\t\tthis.el.find(\"a[rel=tooltip]\").tooltip({\r\n\t\t\tmaxWidth: 215\r\n\t\t});\r\n\r\n\t\t// Init any inputs with a default value\r\n\t\tthis.el.find(\"input[placeholder]\").defaultValue();\r\n\t};\r\n\r\n\tfn.prototype.handle_moduleExpand = function(id, extraContext) {\r\n\t\textraContext = extraContext || {};\r\n\r\n\t\tvar widgetId = \"widget-\" + id;\r\n\r\n\t\t// Create a wrapper for the modal\r\n\t\tvar $modalWrapper = $(\"
\").append(\r\n\t\t\t// Add a placeholder that will be replaced by the new widget\r\n\t\t\t$(\"\")).modal({\r\n\t\t\t\tbackdrop: \"static\", // Prevent the modal from closing on blur\r\n\t\t\t\tshow: false\r\n\t\t\t});\r\n\t\t\r\n\t\t$modalWrapper\r\n\t\t\t.off(\"show.bs.modal\")\r\n\t\t\t.on(\"show.bs.modal\", function () {\r\n\t\t\t\t// Reposition the modal\r\n\t\t\t\tvar $modal = $(this);\r\n\t\t\t\tvar currentTop = $modal.position().top;\r\n\t\t\t\tvar windowTop = $window.scrollTop();\r\n\t\t\t\tvar spacing = 100;\r\n\t\t\t\t$modal.css(\"top\", currentTop + windowTop + spacing);\r\n\r\n\t\t\t\t$documentBody.addClass(\"covered\");\r\n\t\t\t})\r\n\t\t\t.off(\"focusin.bs.modal\")\r\n\t\t\t.on(\"focusin.bs.modal\", function (e) {\r\n\t\t\t\te.stopPropagation();\r\n\t\t\t})\r\n\t\t\t.off(\"hide.bs.modal\")\r\n\t\t\t.on(\"hide.bs.modal\", function () {\r\n\t\t\t\t$documentBody.removeClass(\"covered\");\r\n\r\n\t\t\t\t// Remove the widget completely when the modal is closed\r\n\t\t\t\tvar widgetClass = $(\"#\" + widgetId).data(\"widget\");\r\n\r\n\t\t\t\tif (widgetClass) {\r\n\t\t\t\t\twidgetClass.dispose(true);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$(this).remove();\r\n\t\t\t})\r\n\t\t\t.modal(\"show\");\r\n\t\t\t\r\n\r\n\t\t// Load the new widget\r\n\t\tmod.modules.widgetapi.load({\r\n\t\t\twidgets: {\r\n\t\t\t\tappId: id,\r\n\t\t\t\tcontext: $.extend(true, {}, this.getContext(), extraContext)\r\n\t\t\t},\r\n\t\t\tsuccess: function() {\r\n\t\t\t\t$modalWrapper.removeClass(\"loading\");\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\tfn.prototype.ajax_error = function(xhr) {\r\n\t\t// Throw the request onto the button so we can retry the call\r\n\t\tthis.el.find(\"div.module-error button\").data(\"xhr\", xhr);\r\n\t};\r\n\r\n\tfn.prototype.events = {\r\n\t\t\".module-error button\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\t// Retry the last request\r\n\t\t\t\tvar lastRequest = $el.data(\"xhr\");\r\n\r\n\t\t\t\tif (lastRequest) {\r\n\t\t\t\t\t// Repeat the last request\r\n\t\t\t\t\t$.ajax(lastRequest);\r\n\r\n\t\t\t\t\t// Clear out the stored request\r\n\t\t\t\t\t$el.data(\"xhr\", null);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.reload();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t// Change the size of the module\r\n\t\t\".module-options [data-size]:not(.selected):not(.module-expand-link)\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\tthis.showLoading();\r\n\r\n\t\t\t\tvar newSize = $el.attr(\"data-size\");\r\n\t\t\t\tvar type = this.el.attr(\"data-type\");\r\n\t\t\t\tvar newId = mod.modules.getKeyFromTypeSize(type, newSize);\r\n\t\t\t\tvar context = this.getContext();\r\n\r\n\t\t\t\tmod.modules.widgetapi.load({\r\n\t\t\t\t\twidgets: {\r\n\t\t\t\t\t\tappId: newId,\r\n\t\t\t\t\t\tcontext: context\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\tmod.observer.trigger(\"module - resized\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\t\t// Remove the module from the page\r\n\t\t\".module-hide\": {\r\n\t\t\t\"click\": function() {\r\n\t\t\t\tmod.observer.trigger(\"module - removed\", this);\r\n\t\t\t\tthis.dispose(true);\r\n\t\t\t}\r\n\t\t},\r\n\t\t\".view-toggle\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\t$(\"div[data-view]\", $el.parents(\"div.module-content\")).toggleClass(\"none\");\r\n\t\t\t\tvar text = $(\"span\", $el).text();\r\n\t\t\t\t$(\"span\", $el).text(text == \"Show\" ? \"Hide\" : \"Show\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t// Show the expanded version of the module\r\n\t\t\".module-expand-link\": {\r\n\t\t\t\"click\": function (e, $el) {\r\n\t\t\t\t\r\n\t\t\t\tvar newSize = 4;\r\n\t\t\t\tvar type = this.el.attr(\"data-type\");\r\n\t\t\t\tvar newId = mod.modules.getKeyFromTypeSize(type, newSize);\r\n\t\t\t\tvar context = $el.attr(\"data-context\");\r\n\r\n\t\t\t\tif (context) {\r\n\t\t\t\t\tcontext = JSON.parse(context) || {};\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.handle_moduleExpand(newId, context);\r\n\t\t\t}\r\n\t\t},\r\n\t\t\".action-download\": {\r\n\t\t\t\"click\": function (e, $el) {\r\n\t\t\t\t$(\"#module_download\").removeClass(\"hide\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"#module_download .module-close\": {\r\n\t\t\t\"click\": function (e, $el) {\r\n\t\t\t\t$(\"#module_download\").addClass(\"hide\");\r\n\r\n\t\t\t\tif (e.stopPropagation) {\r\n\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t}\r\n\t\t\t\t\t//IE8 and Lower\r\n\t\t\t\telse {\r\n\t\t\t\t\te.cancelBubble = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n});","mod.modules.define(\"ExpandedModule\", function(fn) {\r\n\t\"use strict\";\r\n\r\n\tfn.prototype.init = function(params) {\r\n\t\tthis.initTooltips();\r\n\t};\r\n\r\n\tfn.prototype.initTooltips = function() {\r\n\t\tthis.el.find(\"a.tooltip-trigger\").tooltip({ html: true });\r\n\t};\r\n\r\n\tfn.prototype.events = {\r\n\t\t\".module-close\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\tthis.el.closest(\".modal\").modal(\"hide\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\".view-toggle\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\t$(\"div[data-view]\", $el.parents(\"div.module-content\")).toggleClass(\"none\");\r\n\t\t\t\tvar text = $(\"span\", $el).text();\r\n\t\t\t\t$(\"span\", $el).text(text == \"Show\" ? \"Hide\" : \"Show\");\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n});","mod.modules.define(\"QuickLinks\", \"BaseModule\", function (fn) {\r\n\r\n fn.prototype.init = function (params) {\r\n\r\n this.base(\"init\", params);\r\n\r\n //create tooltips for disabled report links\r\n this.el.find(\"[rel=tooltip]\").tooltip({\r\n maxWidth: 275,\r\n onEnter: function (self, e) {\r\n\r\n //remove any existing tips before showing new tip\r\n $('body > .tooltip-wrapper').empty().remove();\r\n },\r\n manualClose: true\r\n });\r\n\r\n //custom handling to keep tooltip open until module or tip loses focus\r\n this.el.find('.module-content').on('mouseleave', function (e) {\r\n setTimeout(function () {\r\n var $wrapper = $('body > .tooltip-wrapper');\r\n\r\n if ($wrapper.length > 0 && !$wrapper.is(':hover')) {\r\n $wrapper.empty().remove();\r\n }\r\n }, 50);\r\n });\r\n\r\n this.el.find('.module-content li a').on('mouseenter', function (e) {\r\n setTimeout(function () {\r\n var $wrapper = $('body > .tooltip-wrapper');\r\n\r\n if ($wrapper.length > 0 && !$wrapper.is(':hover')) {\r\n $wrapper.empty().remove();\r\n }\r\n }, 50);\r\n });\r\n\r\n $('body').on('mouseleave', '.tooltip-wrapper', function (e) {\r\n setTimeout(function () {\r\n $('body > .tooltip-wrapper').empty().remove();\r\n }, 50);\r\n });\r\n };\r\n\r\n});","mod.modules.define(\"WatchlistModals\", \"BaseModule\", function(fn) {\r\n\r\n\tfn.prototype.init = function(params) {\r\n\t\tthis.base(\"init\", params);\r\n\t\tthis.wsodIssue = params.wsodIssue || \"\";\r\n\t\tthis.watchlistId = params.watchlistId || \"\";\r\n\r\n\t\tthis.URLs = this.getURLs();\r\n\t};\r\n\r\n\tfn.prototype.getURLs = function() {\r\n\t\treturn {\r\n\t\t\tcreateNewWatchlist: \"~/Watchlist/Create\",\r\n\t\t\trenameWatchlist: \"~/Watchlist/Rename\",\r\n\t\t\tdeleteWatchlist: \"~/Watchlist/Delete\",\r\n\t\t\taddSymbol: \"~/Watchlist/AddSymbol\",\r\n\t\t\taddMultipleSymbol: \"~/Watchlist/AddMultipleSymbol\",\r\n\t\t\taddIssue: \"~/Watchlist/AddIssue\",\r\n\t\t\tremoveIssues: \"~/Watchlist/RemoveIssues\",\r\n\t\t\thome: \"~/Watchlist\",\r\n\t\t\tsortTable: \"~/Watchlist/Sort\"\r\n\t\t};\r\n\t};\r\n\r\n\tfn.prototype.GetWatchListHomeURL = function(id) {\r\n\t\tvar BaseURL = this.URLs.home.resolveUrl();\r\n\t\tvar Parameters = JSON.stringify({ ID: id });\r\n\t\tvar EncodedParameters = \"?Inputs=B64ENC\" + $.toBase64(Parameters);\r\n\r\n\t\treturn BaseURL + EncodedParameters;\r\n\t};\r\n\r\n\tfn.prototype.goHome = function(id) {\r\n\t\twindow.location = this.GetWatchListHomeURL(id);\r\n\t};\r\n\r\n\tfn.prototype.showModal = function(selector, containerEl) {\r\n\t\tthis.$currentContent = $(selector);\r\n\r\n\t\tthis.$currentContent.modal('show').css({\r\n\t\t\t'margin-left': function() {\r\n\t\t\t\treturn -($(this).width() / 2);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tthis.$currentContent.attr(\"data-current-wsodissue\", this.wsodIssue);\r\n\t};\r\n\r\n\tfn.prototype.createNewWatchlist = function() {\r\n\t\tvar newWatchlistName = $(\"[name='new_watchlist_name']\").val();\r\n\r\n\t\t$.ajax({\r\n\t\t\ttype: \"POST\",\r\n\t\t\tdata: {\r\n\t\t\t\tInputs: \"B64ENC\" + $.toBase64(JSON.stringify({\r\n\t\t\t\t\tNewName: newWatchlistName,\r\n\t\t\t\t\tSymbol: this.wsodIssue\r\n\t\t\t\t}))\r\n\t\t\t},\r\n\t\t\tcontext: this,\r\n\t\t\tdataType: \"json\",\r\n\t\t\turl: this.URLs.createNewWatchlist.resolveUrl(),\r\n\t\t\tcomplete: function(jqXHR, textStatus) {\r\n\t\t\t},\r\n\t\t\tsuccess: function(Response, textStatus, jqXHR) {\r\n\t\t\t\t// If a symbol was added then remain on the page in context and close the modal\r\n\t\t\t\tif (this.wsodIssue) {\r\n\t\t\t\t\tthis.closeModal(\"#createWatchlistModal\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (Response.success) {\r\n\t\t\t\t\t\tthis.goHome(Response.WatchlistID);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.closeModal(\"#createWatchlistModal\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\terror: function(jqXHR, textStatus, errorThrown) {\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\tfn.prototype.AddIssueOrSymbolToWL = function(WatchlistID, Issue, IsIssue, callback) {\r\n\t\tvar inputs = {\r\n\t\t\tWatchListID: WatchlistID,\r\n\t\t\tWSODIssue: Issue || this.wsodIssue\r\n\t\t};\r\n\r\n\t\tif (this.sortDirection) {\r\n\t\t\tinputs.SortDirection = this.sortDirection;\r\n\t\t}\r\n\r\n\t\tif (this.sortField) {\r\n\t\t\tinputs.SortField = this.sortField;\r\n\t\t}\r\n\r\n\t\tvar URL = IsIssue ? this.URLs.addIssue.resolveUrl() : this.URLs.addSymbol.resolveUrl();\r\n\r\n\t\t$.ajax({\r\n\t\t\ttype: \"POST\",\r\n\t\t\tcontext: this,\r\n\t\t\tdata: {\r\n\t\t\t\tInputs: \"B64ENC\" + $.toBase64(JSON.stringify(inputs))\r\n\t\t\t},\r\n\t\t\tdataType: \"json\",\r\n\t\t\turl: URL,\r\n\t\t\tsuccess: function(response, textStatus, jqXHR) {\r\n\t\t\t\tif (response.success) {\r\n\t\t\t\t\tthis.closeModal(this.$currentContent);\r\n\t\t\t\t\tthis.clearErrors();\r\n\t\t\t\t\tmod.observer.trigger(\"watchlist - update\");\r\n\t\t\t\t} \r\n\t\t\t\telse if (response.error == \"full\") {\r\n\t\t\t\t\tthis.showError(\"The maximum number of holdings have already been added to this watchlist.\");\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tthis.showError(\"The symbol could not be added to your watchlist.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Set the watchlistId as a param so we can inspect it from the callback\r\n\t\t\t\tresponse.watchlistId = WatchlistID;\r\n\r\n\t\t\t\tif (callback != null) {\r\n\t\t\t\t\tcallback(response);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\t\r\n\r\n\tfn.prototype.showError = function(text) {\r\n\t\tthis.$currentContent.find(\"p.error-text\").show().text(text);\r\n\t};\r\n\r\n\tfn.prototype.clearErrors = function() {\r\n\t\tthis.$currentContent.find(\"p.error-text\").hide().text(\"\");\r\n\t};\r\n\r\n\tfn.prototype.addIssue = function(WSODIssue, WatchListID) {\r\n\t\tvar wsodIssue = WSODIssue || $(\"#addToWatchlistSearchModal\").attr(\"data-current-wsodissue\");\r\n\t\tvar WatchlistID = WatchListID || this.$currentContent.find(\"select option:selected\").attr(\"data-watchlist-id\");\r\n\t\tthis.AddIssueOrSymbolToWL(WatchlistID, wsodIssue, true);\r\n\t};\r\n\r\n\tfn.prototype.addSymbol = function(callback) {\r\n\t\tvar WatchlistID = $(\"#addToWatchlistSearchModal select option:selected\").attr(\"data-watchlist-id\");\r\n\t\tvar Symbol = $(\"#addToWatchlistSearchModal input.symbol-search\").val();\r\n\t\tthis.AddIssueOrSymbolToWL(WatchlistID, Symbol, false, callback);\r\n\t};\r\n\r\n\tfn.prototype.closeModal = function(el) {\r\n\t\tthis.clearErrors();\r\n\t\t$(el).modal('hide');\r\n\t};\r\n\r\n\tfn.prototype.events = {\r\n\t\t\"button[data-action]\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\tvar action = $el.attr(\"data-action\");\r\n\r\n\t\t\t\tswitch (action) {\r\n\t\t\t\t\tcase \"create-new-watchlist\":\r\n\t\t\t\t\t\tthis.createNewWatchlist();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"gotoWatchList\":\r\n\t\t\t\t\t\tthis.goHome($el.data(\"watchlist-id\"));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"addIssue\":\r\n\t\t\t\t\t\tthis.addIssue();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"button[data-action='cancel']\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\tthis.closeModal($el.closest(\"div.modal\"));\r\n\t\t\t}\r\n\t\t},\r\n\t\t\".modalForm select\": {\r\n\t\t\t\"change\": function(e, $el) {\r\n\t\t\t\tthis.clearErrors();\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n});","mod.modules.define(\"Plugin-Paging\", function(fn) {\r\n\r\n\tfn.prototype.events = {\r\n\t\t\".pager-wrap [data-pageindex]:not([disabled=disabled])\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\tthis.reload({\r\n\t\t\t\t\tPageIndex: $el.attr(\"data-pageindex\")\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\t\t\".pager-wrap select.pager-select-page\": {\r\n\t\t\t\"change\": function(e, $el) {\r\n\t\t\t\tthis.reload({\r\n\t\t\t\t\tPageIndex: $el.val()\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n});","/*global mod*/\r\n\r\nmod.modules.define(\"DashboardPage\", function (fn) {\r\n\r\n\tfn.prototype.init = function () {\r\n\t\tthis.attachSortable();\r\n\t};\r\n\r\n\tfn.prototype.attachSortable = function () {\r\n\t\tvar margin = 20;\r\n\r\n\t\tthis.el.find(\"#dashboard-sub-modules\").sortable({\r\n\t\t\t//grid: [300, 400 + margin],\r\n\t\t\tforcePlaceholderSize: true,\r\n\t\t\thandle: \".module-header\",\r\n\t\t\tcontainment: \"parent\",\r\n\t\t\trevert: 100,\r\n\t\t\ttolerance: \"pointer\",\r\n\t\t\tcursor: \"move\",\r\n\t\t\tscroll: false,\r\n\t\t\tdefaultItem: $(\"\")\r\n\t\t});\r\n\r\n\t\tthis.el.find(\"#dashboard-modules\").sortable({\r\n\t\t\t//grid: [300, 400 + margin],\r\n\t\t\tforcePlaceholderSize: true,\r\n\t\t\thandle: \".module-header\",\r\n\t\t\tcontainment: \"parent\",\r\n\t\t\trevert: 100,\r\n\t\t\ttolerance: \"pointer\",\r\n\t\t\tcursor: \"move\",\r\n\t\t\tscroll: false,\r\n\t\t\tdefaultItem: $(\"\")\r\n\t\t});\r\n\r\n\t};\r\n\r\n\tfn.prototype.observables = {\r\n\t\t\"module - removed\": function (module) {\r\n\t\t\tmodule.el.closest(\"li\").remove();\r\n\t\t}\r\n\t};\r\n\r\n\tfn.prototype.events = {\r\n\t\t\".module-minimize\": {\r\n\t\t\t\"click\": function (e, $el) {\r\n\t\t\t\tvar parentModule = $el.parents(\".module\");\r\n\t\t\t\tvar moduleContent = parentModule.find(\".module-content\");\r\n\r\n\t\t\t\tif(moduleContent) {\r\n\t\t\t\t\tmoduleContent.hide();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar moduleContent = parentModule.find(\".dashboard-wide-module-content\");\r\n\r\n\t\t\t\tif(moduleContent) {\r\n\t\t\t\t\tmoduleContent.hide();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$el.removeClass(\"module-minimize\");\r\n\t\t\t\t$el.addClass(\"module-maximize\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t\".module-maximize\": {\r\n\t\t\t\"click\": function (e, $el) {\r\n\t\t\t\tvar parentModule = $el.parents(\".module\");\r\n\r\n\t\t\t\tvar moduleContent = parentModule.find(\".module-content\");\r\n\r\n\t\t\t\tif(moduleContent) {\r\n\t\t\t\t\tmoduleContent.show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar moduleContent = parentModule.find(\".dashboard-wide-module-content\");\r\n\t\t\t\t\r\n\t\t\t\tif(moduleContent) {\r\n\t\t\t\t\tmoduleContent.show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$el.removeClass(\"module-maximize\");\r\n\t\t\t\t$el.addClass(\"module-minimize\");\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n});","mod.modules.define(\"ResearchNotes\", \"BaseModule\", function (fn) {\r\n\r\n\tfn.prototype.init = function (params) {\r\n\t\tthis.base(\"init\", params);\r\n\r\n\t\tvar $noteBodies = this.el.find(\".textBody\");\r\n\r\n\t\tvar DotDotHeight = 50;\r\n\r\n\t\tif (this.el.find(\"span.readMore\").length > 0) {\r\n\t\t\tDotDotHeight = 35;\r\n\t\t}\r\n\r\n\t\tif ($noteBodies.length) {\r\n\t\t\t$noteBodies.dotdotdot({\r\n\t\t\t\theight: DotDotHeight,\r\n\t\t\t\ttolerance: 0,\r\n\t\t\t\twrap: 'letter'\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n});","mod.modules.define(\"NewsAndAnalysis\", \"BaseModule\", function (fn) {\r\n\r\n\tfn.prototype.init = function (params) {\r\n\t\tthis.base(\"init\", params);\r\n\r\n\t\tif (this.el.find(\"div.pager-wrap\").length) {\r\n\t\t\tthis.addPlugin(\"Plugin-Paging\");\r\n\t\t}\r\n\t};\r\n\r\n});","mod.modules.define(\"FeaturedCommentary\", \"BaseModule\", function (fn) {\r\n\r\n\tfn.prototype.init = function (params) {\r\n\t\tthis.base(\"init\", params);\r\n\r\n\t\tvar $articles = this.el.find(\".secondaryArticleContainer\");\r\n\r\n\t\tfor(var i=0;i<$articles.length; ++i){\r\n\t\t\tvar $el = $($articles[i]);\r\n\t\t\tvar Top = $el.position().top;\r\n\t\t\tvar Summary = $el.find(\".summary\");\r\n\t\t\tvar SummaryTop = 0;\r\n\t\t\tif(Summary.length > 0 )\r\n\t\t\t{\r\n\t\t\t\tSummaryTop = Summary.position().top;\r\n\t\t\t}\r\n\t\t\tvar ReadMoreHeight = $el.find(\".readMoreLink\").height();\r\n\r\n\t\t\tvar TopSectionHeight = SummaryTop - Top;\r\n\t\t\tvar TotalHeight = $el.height();\r\n\t\t\tvar MaxContentHeight = TotalHeight - TopSectionHeight - ReadMoreHeight - 10;\r\n\r\n\t\t\tSummary.dotdotdot({\r\n\t\t\t\theight : MaxContentHeight,\r\n\t\t\t\ttolerance: 0,\r\n\t\t\t\twrap: 'letter'\r\n\t\t\t});\r\n\t\t}\r\n\t};\r\n\r\n});","mod.modules.define(\"MyWatchlistsAndPortfolios\", \"BaseModule\", function(fn) {\r\n\r\n\tfn.prototype.init = function(params) {\r\n\t\tthis.base(\"init\", params);\r\n\r\n\t\tthis.SelectedTab = \"Watchlists\";\r\n\t\tthis.SelectedListId = $(\"#watchlist_selector\").val(params.watchlistId);\r\n\r\n\t\tthis.addPlugin('Plugin-Paging');\r\n\t\tthis.WatchlistPlugin = this.addPlugin('WatchlistModals');\r\n\t};\r\n\r\n\tfn.prototype.getContext = function() {\r\n\t\treturn {\r\n\t\t\tSelectedTab: this.SelectedTab,\r\n\t\t\tSelectedListId: this.SelectedListId\r\n\t\t};\r\n\t};\r\n\r\n\tfn.prototype.events = {\r\n\t\t\"#watchlist_selector\": {\r\n\t\t\t\"change\": function(e, $el) {\r\n\t\t\t\tthis.SelectedListId = $el.val();\r\n\r\n\t\t\t\tthis.reload({\r\n\t\t\t\t\tPageIndex: 0\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"a.editWatchlist\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\tvar SelectedListId = $(\"#watchlist_selector\").val();\r\n\t\t\t\tthis.WatchlistPlugin.goHome(SelectedListId);\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"[data-action='createwatchlist']\": {\r\n\t\t\t\"click\": function(e, $el) {\r\n\t\t\t\tthis.WatchlistPlugin.showModal(\"#createWatchlistModal\", $(\"[data-type='mywatchlistsandportfolios']\"));\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n});","mod.modules.define(\"BaseAnalytics\", function(fn) {\r\n\r\n // fn.prototype.init = function (params) {\r\n\t//\tthis.category = \"Default\";\r\n\t//};\r\n\r\n\t//fn.prototype.trackPage = function(name) {\r\n\t//\tname = name || \"Untitled\";\r\n\r\n\t//\t_waq.push([\r\n\t//\t\t'_trackPageView',\r\n\t//\t\t{\r\n\t//\t\t\tcategory: this.category,\r\n\t//\t\t\tname: name\r\n\t//\t\t}\r\n\t//\t]);\r\n\t//};\r\n\r\n\t//fn.prototype.trackAction = function(actionCategory, name, value) {\r\n\t//\tactionCategory = actionCategory || \"Undefined\";\r\n\r\n\t//\tvar data = {\r\n\t//\t\tcategory: actionCategory\r\n\t//\t};\r\n\r\n\t//\tif (name) {\r\n\t//\t\tdata.name = name;\r\n\t//\t}\r\n\r\n\t//\tif (value) {\r\n\t//\t\tdata.value = value;\r\n\t//\t}\r\n\r\n\t//\t_waq.push(['_trackAction', data]);\r\n\t//};\r\n\r\n\t//fn.prototype.observables = {\r\n\t// \"search - symbol\": function (term) {\r\n\t//\t\tthis.trackAction(\"Search\", \"Symbol\");\r\n\t//\t}\r\n\t//};\r\n\r\n});","mod.modules.define(\"DashboardAnalytics\", \"BaseAnalytics\", function(fn) {\r\n\r\n\tfn.prototype.init = function(params) {\r\n\t\tthis.category = \"Dashboard\";\r\n\r\n\t\t// Show that we landed on the page\r\n\t\t//this.trackPage(this.category);\r\n\t};\r\n\r\n\t// Disabling actions for business reasons\r\n\r\n\t//fn.prototype.observables = {};\r\n\r\n});"]}