Commit graph

32 commits

Author SHA1 Message Date
Colin Kuskie
428ea58327 Add better support for user profile fields for addresses to the Cart and the EMS. 2011-08-11 16:27:29 -07:00
Amir Plivatsky
5aa0835649 - Added support for textarea and HTMLarea fields + i18n additional labels
(editor Save/Cancel,  YUI Datatable Loading/Error messages, and also column sort tooltips (new in YUI 29.0).
- Added CSS files for the existing two DataTable Templates.  Each file should be added to the corresponding
  template as a CSS Attachment.
- Avoid terminating the editor on Enter.
- Arrange for TAB to save and move editor for next cell also for HTMLarea editor.
- Define classes "wg-dt-textarea" and "wg-dt-htmlarea" + styling for the corresponding cells.
- Commented out handleTableKeyEvent() (reason in the code).
- Implemented a simple workaround to restore the "editor" field (not preserved due to an unknown reason).
2011-07-12 23:34:27 +03:00
Amir Plivatsky
1fd29bf2a1 Added CSS file for Edit DataTable.
For now it only contains a style to prevent empty row collapsing.
2011-07-12 22:58:45 +03:00
Amir Plivatsky
50954c333f Fixed #12191. 2011-07-12 19:47:27 +03:00
ampli
5ea09092ad Fixed the following jslint warnings:
Lint at line 5 character 16: 'WebGUI' was used before it was defined.
var WebGUI = {};

Lint at line 53 character 86: Missing '()' invoking a constructor.
data[ columns[ i ].key ] = columns[i].formatter == "date" ? new Date : "";

Lint at line 89 character 21: 'i' is already defined.
for ( var i = 0; i < cols.length; i++ ) {

Lint at line 612 character 25: 'col' is already defined.
var col     = this.dataTable.getColumn( oldKey );

Lint at line 661 character 63: Missing '()' invoking a constructor.
allRecords[j].setData(newKey, new Date);
2011-06-29 04:55:59 +03:00
ampli
8e7beabaf0 Fix #12179.
In WebKit browsers, when a schema is saved, existing column
field types are reset to "Text". This is not a bug in WebKit, and
will happen in any browser that implements Option() as documented.

Option() is not supposed to have an immediate action if only the
default selection is updated on a newly added select object.
See: http://download.oracle.com/docs/cd/E19957-01/816-6408-10/option.htm .

Repeat-By:
1. New Content->basic->Datatable
2. data
3. Edit Schema
4. col1, Number, Add Column
5. col2, E-mail, Add Column
6. col3, URL, Add Column
7. Edit Schema (note that the field types got reset to "Text")
8  Save (now the field types incorrectly got overwritten in the DataTable)

Fixed by adding 4th arguments to actually make the new selection to be
equal to the default one.
2011-06-29 04:12:02 +03:00
ampli
ed0c400440 Columns in DataTable may be "randomly" deleted. This happens in updateSchema(), because both the column update loop and the row update loop use the same variable "i". Since variable scope in JS is by function and not block, the column loop variable gets overwritten.
Repeat-by:
1. New Content->Basic->DataTable
2. data
3. Edit Schema
4. col1, add Column
5. col2, add Column
6. col3, Save
7. Edit Schema

Note that col2 is missing.

Fix:
Change the name of the variable in the row loop.
2011-06-29 03:01:15 +03:00
Colin Kuskie
ef08d0d481 i18n the controls for the JsonTable form plugin. Fixes bug #12116 2011-04-21 19:54:18 -07:00
Colin Kuskie
d927f279cb Code cleanup for groupManager JS 2011-03-14 16:29:34 -07:00
Colin Kuskie
88797c1d6c Add Asset Dashlets to Dashboard. Add required and static properties to Dashboard Assets. Add caching to StockData and WeatherData assets. Add LastModifiedBy macro. Add GroupManager to the Group form control. 2011-03-09 21:33:44 -08:00
Colin Kuskie
34c48e6e41 Fix type handling in the new jsontable JS. Kudos to khenn for the patch. Fixes bug #11810 2010-09-07 10:52:14 -07:00
khenn
3141a6ed5e Fixed injection issues with SQL. Fixed a JS issue introduced in previous bug fix. 2010-08-10 21:35:07 -05:00
khenn
c3989308fa Fixed international problem in JavaScript file 2010-08-10 20:42:58 -05:00
khenn
22da7c4114 initial release of Asset Report asset allowing reports to be created using asset properties. 2010-08-10 18:53:22 -05:00
Doug Bell
625da8bb41 fix 11432 DataTable date input 2010-08-10 14:05:35 -05:00
Doug Bell
69b7fe0465 fix jsontable and use it for Calendar feeds 2010-07-13 13:12:47 -05:00
Colin Kuskie
0fb7a60917 Fix DataForms with dates. 2010-02-23 20:59:49 -08:00
Colin Kuskie
83395fbe95 Fix Date handling by the DataTable, again... Now it uses a custom date parser to take the ISO date format. Fixes bug #11428. 2010-02-23 12:56:00 -08:00
Colin Kuskie
9d14e8b420 Fix rendering of initial DataTable in IE7, IE8. Fixes bug #11205.
Added TR, TD tags to table containing the DataTable.  Also,
ran dataTable.js through jslint and fixed many issues.
2009-11-09 16:51:38 -08:00
Graham Knop
38ff4f053b fixed #10667: cannot change size of template editor 2009-08-03 20:09:00 +00:00
Paul Driver
7e51ddd3b2 Making sure focus is set properly when tabbing through fields in the datatable editor 2009-06-03 15:36:57 +00:00
David Delikat
571c824ad1 fixed bug #9629: override stringify date format to use java default format. 2009-02-10 04:03:27 +00:00
Doug Bell
9f58115cac fixed #9150: Edit Data Table - Cannot add column (David Delikat) 2008-12-11 00:27:54 +00:00
Doug Bell
d224376d02 added: Delete columns in DataTable
fixed: Now more than one DataTable can be on a page
2008-11-07 03:32:18 +00:00
Doug Bell
3e1f66a0e7 added: DataTable asset 2008-10-28 22:27:17 +00:00
Doug Bell
3fc8c25025 added: Textarea now supports maxlength attribute 2008-10-24 19:54:30 +00:00
Frank Dillon
9a6171c09c added getFormValue method which accepts an HTML element or id and returns the value of the field regardless of it's type 2008-09-22 22:24:32 +00:00
Frank Dillon
bd24e912c5 Added a method which parses a form and returns a properly encoded post string. 2008-09-15 17:18:10 +00:00
Doug Bell
48408ac5be fixed: Form CheckList Select All button now functions correctly 2008-08-12 17:44:40 +00:00
Doug Bell
f3996eb316 Complete asset manager rewrite. 2008-05-26 22:07:16 +00:00
Doug Bell
7042ccda9d fix: Select All button javascript now works in IE 2007-09-14 19:13:46 +00:00
Doug Bell
4d36c1e6c2 add: WebGUI::Form::CheckList now has optional select all button 2007-09-12 00:50:54 +00:00