From 94793b78088748d42c9f3ed1487ab2ce78c4415d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 17 Jun 2013 21:22:32 +0000 Subject: [PATCH] Silence some warnings by providing info --- etemplate/js/et2_widget_favorites.js | 2 +- etemplate/js/et2_widget_historylog.js | 8 ++++++-- etemplate/js/et2_widget_htmlarea.js | 5 ++++- etemplate/js/et2_widget_textbox.js | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/etemplate/js/et2_widget_favorites.js b/etemplate/js/et2_widget_favorites.js index 1850e230a0..6c4d39d40a 100644 --- a/etemplate/js/et2_widget_favorites.js +++ b/etemplate/js/et2_widget_favorites.js @@ -74,7 +74,7 @@ var et2_favorites = et2_dropdown_button.extend([et2_INextmatchHeader], label: {"default": ""}, label_updates: { "default": false}, image: {"default": "etemplate/fav_filter"}, - tooltip: {"default": "Favorite queries", "type": "string"} + statustext: {"default": "Favorite queries", "type": "string"} }, // Some convenient variables, used in closures / event handlers diff --git a/etemplate/js/et2_widget_historylog.js b/etemplate/js/et2_widget_historylog.js index 93fe230654..3b5c0f0c7f 100644 --- a/etemplate/js/et2_widget_historylog.js +++ b/etemplate/js/et2_widget_historylog.js @@ -35,11 +35,15 @@ var et2_historylog = et2_valueWidget.extend([et2_IDataProvider], { attributes: { "value": { - "type": "any" + "name": "Value", + "type": "any", + "description": "Object {app: ..., id: ..., status-widgets: {}} where status-widgets is a map of fields to widgets used to display those fields" }, "status_id":{ + "name": "status_id", "type": "string", - "default": "status" + "default": "status", + "description": "The history widget is traditionally named 'status'. If you name another widget in the same template 'status', you can use this attribute to re-name the history widget. " } }, diff --git a/etemplate/js/et2_widget_htmlarea.js b/etemplate/js/et2_widget_htmlarea.js index 9507902544..f27fab1c8c 100644 --- a/etemplate/js/et2_widget_htmlarea.js +++ b/etemplate/js/et2_widget_htmlarea.js @@ -47,6 +47,7 @@ var et2_htmlarea = et2_inputWidget.extend( 'name': 'Expand Toolbar', 'default': true, 'type':'any', + 'description': 'Have the toolbar expanded (visible)' }, 'base_href': { 'name': 'Image base path', @@ -56,8 +57,10 @@ var et2_htmlarea = et2_inputWidget.extend( }, 'config': { // internal default configuration + 'name': 'Internal configuration', 'type':'any', - 'default': et2_no_init + 'default': et2_no_init, + 'description': 'Internal configuration - managed by preferences & framework, passed in here' }, }, diff --git a/etemplate/js/et2_widget_textbox.js b/etemplate/js/et2_widget_textbox.js index f02ee47170..32886c7305 100644 --- a/etemplate/js/et2_widget_textbox.js +++ b/etemplate/js/et2_widget_textbox.js @@ -194,7 +194,7 @@ var et2_textbox_ro = et2_valueWidget.extend([et2_IDetachedDOM], "ignore": true }, "maxlength": { - "igore": true + "ignore": true }, "onchange": { "ignore": true