Last change
on this file was
490,
checked in by hendrikvanantwerpen, 11 years ago
|
- Mark content as dirty to prevent moving away from unsaved data.
- Better change propagation from lists and our own widgets.
- Generate notifications for errors and show correct message.
- Moved all path/url generation to the class stores, not everywhere we
use it.
- Give user always a choice between Save and Save & Close.
- Better refresh behaviour on form changes and saves.
- Don't generate duplicate code error when existing object is the one
you're storing.
|
File size:
1.1 KB
|
Line | |
---|
1 | define([
|
---|
2 | "../../widgets/LineWithActionsWidget",
|
---|
3 | "../../widgets/ListWidget",
|
---|
4 | "dojo/_base/declare",
|
---|
5 | "dojo/_base/lang",
|
---|
6 | "dojo/dom-construct"
|
---|
7 | ], function(LineWithActionsWidget, ListWidget, declare, lang, domConstruct) {
|
---|
8 | return declare([ListWidget],{
|
---|
9 | baseClass: 'rftAccountListView',
|
---|
10 | type: 'account',
|
---|
11 |
|
---|
12 | createAvatar: function(id, item){
|
---|
13 | return domConstruct.create("div",{
|
---|
14 | 'class': 'dragAvatar',
|
---|
15 | innerHTML: item.title
|
---|
16 | });
|
---|
17 | },
|
---|
18 | createListElement: function(id, item) {
|
---|
19 | var w = new LineWithActionsWidget({
|
---|
20 | id: id,
|
---|
21 | title: item.title,
|
---|
22 | 'class': "green",
|
---|
23 | actions: {
|
---|
24 | "Remove" : {
|
---|
25 | callback: lang.hitch(this, 'removeItem', item, true),
|
---|
26 | properties: {
|
---|
27 | blockButton: false,
|
---|
28 | icon: "Delete"
|
---|
29 | }
|
---|
30 | }
|
---|
31 | }
|
---|
32 | });
|
---|
33 | w.startup();
|
---|
34 | return w;
|
---|
35 | }
|
---|
36 | });
|
---|
37 | });
|
---|
Note: See
TracBrowser
for help on using the repository browser.