From: riccardo Date: Mon, 6 Jun 2011 18:13:32 +0000 (+0200) Subject: marker popup working X-Git-Tag: 1.1~134 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a35b642cc273e3c034e7e3defc4a3194c092d1cb;p=telemeta.git marker popup working --- diff --git a/telemeta/htdocs/js/playerLoader.js b/telemeta/htdocs/js/playerLoader.js index 8729d53d..00d5c2e5 100644 --- a/telemeta/htdocs/js/playerLoader.js +++ b/telemeta/htdocs/js/playerLoader.js @@ -199,7 +199,6 @@ function loadPlayer(analizerUrl, soundUrl, itemId, visualizers, currentUserName, }; } msgElm.html('Loading player...'); - consolelog(visualizers); var visualizersSelectElement = $J(' tag element popup). + * with value = val. The popup takes care of s and s horizontal alignement so there should be + * no need of extra css). The type of is determined as follows: + * a) val is boolean: + * b) val is an array of strings: tag in the strict term...) + * c) otherwise: with val.toString as value * If showOk is true (see below), a click on the ok anchor will trigger the popup onOk callback (see below) with - * argument a dictionary of (key: val) pairs, where each val is the relative input value - * an array of strings for listItem popup. Each array element represents a line of the popup (internally, an anchor with - * inner html the array element value). A click on each anchor triggers the onOk callback (see onOk below) - * a jQuery object: the content will be appended to the popup - * otherwise: content.toString() will be set as the popup innerHTML - * invoker (jQuery(window)): a jQuery object representing an html element. If invoker is a clickable element (anchor, input of type button or submit, - * button), then the PopupDiv bounds will be placed according to invoker as if it was a popup list of a select tag. Otherwise, the popupdiv will be centered inside invoker. Note that - * internally each popupdiv is appended to the body element, so it will be visually centered in invoker, it should not belong - * to invoker children + * argument a dictionary of (key: value) pairs + * 2) an array of strings for (list item popup). Each array element (string) S will be represented by a row of the popup (internally, an anchor with innerHTML=S). A click on each anchor triggers the onOk callback (see onOk below), with argument an object of the form {selIndex:N}, + where N is the index of the anchor being clicked + * 3) a jQuery object: the content will be appended to the popup + * 4) otherwise: content.toString() will be set as the popup innerHTML + * In all of these cases, object inserted in the popup via the content property can be retrieved and manipulated via the popup.find method (same syntax as in jQuery) + * invoker (jQuery(window)): a jQuery object representing an html element. If invoker is: + * a clickable element (anchor, input of type button or submit, button), then the PopupDiv will behave as a