- improved system alias re-naming input, closed #353

This commit is contained in:
Exodus4D
2016-10-24 20:42:32 +02:00
parent ca1cbb0e06
commit 22e8d54be4
6 changed files with 40 additions and 11 deletions

View File

@@ -514,11 +514,10 @@ define([
*/
var initCharacterAnimation = function(imageWrapperElement){
imageWrapperElement.velocity('stop').delay(300).velocity('transition.flipBounceXIn', {
imageWrapperElement.velocity('stop').velocity('transition.flipBounceXIn', {
display: 'inline-block',
stagger: 60,
drag: true,
duration: 600
duration: 500
});
// Hover effect for character info layer
@@ -528,7 +527,7 @@ define([
characterInfoElement.velocity('finish').velocity({
width: ['100%', [ 400, 15 ] ]
},{
easing: 'easeInSine'
easing: 'easeOutSine'
});
}, function(e){
var characterInfoElement = $(this).find('.' + config.characterImageInfoClass);
@@ -537,7 +536,7 @@ define([
width: 0
},{
duration: 150,
easing: 'easeInOutSine'
easing: 'easeOutSine'
});
});
};

View File

@@ -1067,6 +1067,17 @@ define([
// system alias changed -> mark system as updated
system.markAsChanged();
});
headElement.on('shown', function(e, editable) {
var inputElement = editable.input.$input.select();
// "fake" timeout until dom rendered
setTimeout(function(input){
// pre-select value
input.select();
}, 0, inputElement);
});
console.log(system);
};
/**

File diff suppressed because one or more lines are too long

View File

@@ -514,11 +514,10 @@ define([
*/
var initCharacterAnimation = function(imageWrapperElement){
imageWrapperElement.velocity('stop').delay(300).velocity('transition.flipBounceXIn', {
imageWrapperElement.velocity('stop').velocity('transition.flipBounceXIn', {
display: 'inline-block',
stagger: 60,
drag: true,
duration: 600
duration: 500
});
// Hover effect for character info layer
@@ -528,7 +527,7 @@ define([
characterInfoElement.velocity('finish').velocity({
width: ['100%', [ 400, 15 ] ]
},{
easing: 'easeInSine'
easing: 'easeOutSine'
});
}, function(e){
var characterInfoElement = $(this).find('.' + config.characterImageInfoClass);
@@ -537,7 +536,7 @@ define([
width: 0
},{
duration: 150,
easing: 'easeInOutSine'
easing: 'easeOutSine'
});
});
};

View File

@@ -1067,6 +1067,17 @@ define([
// system alias changed -> mark system as updated
system.markAsChanged();
});
headElement.on('shown', function(e, editable) {
var inputElement = editable.input.$input.select();
// "fake" timeout until dom rendered
setTimeout(function(input){
// pre-select value
input.select();
}, 0, inputElement);
});
console.log(system);
};
/**

View File

@@ -83,6 +83,15 @@ em{
background-color: transparent;
}
// text selection =================================================================================
::selection{
background: $gray-lighter; /* WebKit/Blink Browsers */
color: $gray-darkest;
}
::-moz-selection{
background: $gray-lighter; /* Gecko Browsers */
color: $gray-darkest;
}
// help elements ==================================================================================
.pf-help{
cursor: pointer; // fallback