From 5b7cdc20ba29f5d4f8ecf6980329ca754ead95c4 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 30 Dec 2012 17:23:44 +0000 Subject: [PATCH] Added beginnings of popup widget --- core/modules/utils/parsetree.js | 9 +++ core/modules/widgets/popup.js | 97 +++++++++++++++++++++++++++++++++ core/templates/TagTemplate.tid | 10 +++- 3 files changed, 113 insertions(+), 3 deletions(-) create mode 100644 core/modules/widgets/popup.js diff --git a/core/modules/utils/parsetree.js b/core/modules/utils/parsetree.js index a2b1428ce..6e8ad27c6 100644 --- a/core/modules/utils/parsetree.js +++ b/core/modules/utils/parsetree.js @@ -46,4 +46,13 @@ exports.addStyleToParseTreeNode = function(node,name,value) { } }; +exports.findParseTreeNode = function(nodeArray,search) { + for(var t=0; t -@@ +<$popup class="btn-invisible"><$handle> +@@.label <$view field="title" format="text" />@@ +<$body> +Some popup + + +