some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-06-01 23:03:47 +03:00
parent 5088530227
commit e9daf8a1b7

View File

@ -1058,7 +1058,6 @@ var WidgetTestActions = actions.Actions({
console.log('Dialog closing...') console.log('Dialog closing...')
}) })
})], })],
testBrowseCloud: ['Test/Demo cloud dialog...', testBrowseCloud: ['Test/Demo cloud dialog...',
makeUIDialog(function(){ makeUIDialog(function(){
var actions = this var actions = this
@ -1080,23 +1079,22 @@ var WidgetTestActions = actions.Actions({
+'cu has corpora definitionem.' +'cu has corpora definitionem.'
words words
.split(/\s/g) .split(/\s+/g)
.unique() .unique()
.forEach(function(c){ .forEach(function(c){
make(c) make(c)
// toggle opacity...
.on('open', function(){
var e = $(this).find('.text')
e.css('opacity',
e.css('opacity') == 0.3 ? '' : 0.3)
})
}) })
// NOTE: the dialog's .parent is not yet set at this point...
// This will finalize the dialog...
//
// NOTE: this is not needed here as the dialog is drawn
// on sync, but for async dialogs this will align
// the selected field correctly.
make.done() make.done()
}, { },
cloudView: true // make the dialog a cloud...
}) { cloudView: true })
// NOTE: this is not a dialog event, it is defined by the // NOTE: this is not a dialog event, it is defined by the
// container to notify us that we are closing... // container to notify us that we are closing...
.on('close', function(){ .on('close', function(){