mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-02 12:20:08 +00:00
tweaking the dialogs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b5dd4f4d82
commit
3824e54a2c
13
ui/ui.js
13
ui/ui.js
@ -402,8 +402,8 @@ var FIELD_TYPES = {
|
|||||||
text: null,
|
text: null,
|
||||||
default: false,
|
default: false,
|
||||||
html: '<div class="field checkbox">'+
|
html: '<div class="field checkbox">'+
|
||||||
'<input type="checkbox" class="value">'+
|
'<label><input type="checkbox" class="value">'+
|
||||||
'<span class="text"></span>'+
|
'<span class="text"></span></label>'+
|
||||||
'</div>',
|
'</div>',
|
||||||
test: function(val){
|
test: function(val){
|
||||||
return val === true || val === false
|
return val === true || val === false
|
||||||
@ -497,10 +497,10 @@ var FIELD_TYPES = {
|
|||||||
default: false,
|
default: false,
|
||||||
html: '<div class="field choice">'+
|
html: '<div class="field choice">'+
|
||||||
'<span class="text"></span>'+
|
'<span class="text"></span>'+
|
||||||
'<div class="item">'+
|
'<div class="item"><label>'+
|
||||||
'<input type="radio" class="value"/>'+
|
'<input type="radio" class="value"/>'+
|
||||||
'<span class="item-text"></span>'+
|
'<span class="item-text"></span>'+
|
||||||
'</div>'+
|
'</label></div>'+
|
||||||
'</div>',
|
'</div>',
|
||||||
// format: ['a', 'b', 'c', ...]
|
// format: ['a', 'b', 'c', ...]
|
||||||
test: function(val){
|
test: function(val){
|
||||||
@ -508,6 +508,7 @@ var FIELD_TYPES = {
|
|||||||
},
|
},
|
||||||
set: function(field, value){
|
set: function(field, value){
|
||||||
var t = field.find('.text').text()
|
var t = field.find('.text').text()
|
||||||
|
t = t == '' ? Math.random()+'' : t
|
||||||
var item = field.find('.item').last()
|
var item = field.find('.item').last()
|
||||||
for(var i=0; i < value.length; i++){
|
for(var i=0; i < value.length; i++){
|
||||||
item.find('.value')
|
item.find('.value')
|
||||||
@ -738,15 +739,17 @@ function loadDirectoryDialog(dfl){
|
|||||||
|
|
||||||
|
|
||||||
function sortImagesDialog(message){
|
function sortImagesDialog(message){
|
||||||
|
|
||||||
updateStatus('Sort...').show()
|
updateStatus('Sort...').show()
|
||||||
|
|
||||||
message = message == null ? 'Sort images by:' : message
|
message = message == null ? 'Sort images by:' : message
|
||||||
|
|
||||||
cfg = {}
|
cfg = {}
|
||||||
cfg[message] = [
|
cfg[message] = [
|
||||||
'Date (ascending)',
|
'Date (ascending)',
|
||||||
'Name (ascending)',
|
'Name (ascending)',
|
||||||
'Date (decending)',
|
'Date (decending)',
|
||||||
'Name (decending)',
|
'Name (decending)'
|
||||||
]
|
]
|
||||||
|
|
||||||
formDialog(null, '',
|
formDialog(null, '',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user