mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 14:58:43 +02:00
Customer portal : Good Vibrations ♫♫
SVN:trunk[4149]
This commit is contained in:
@@ -51,6 +51,12 @@ $(function()
|
|||||||
oEvent.preventDefault();
|
oEvent.preventDefault();
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
|
// EasterEgg : Vibrate on submit
|
||||||
|
if(window.navigator.vibrate)
|
||||||
|
{
|
||||||
|
window.navigator.vibrate(200);
|
||||||
|
}
|
||||||
|
|
||||||
// Validating fields prior to post (Client side)
|
// Validating fields prior to post (Client side)
|
||||||
var bIsValid = me.options.field_set.triggerHandler('validate');
|
var bIsValid = me.options.field_set.triggerHandler('validate');
|
||||||
// Retrieving stimulus name
|
// Retrieving stimulus name
|
||||||
@@ -200,6 +206,11 @@ $(function()
|
|||||||
// Else go to the first invalid field
|
// Else go to the first invalid field
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// EasterEgg : Vibrate on submit
|
||||||
|
if(window.navigator.vibrate)
|
||||||
|
{
|
||||||
|
window.navigator.vibrate([200, 100, 200]);
|
||||||
|
}
|
||||||
this.element.find('.has-error')[0].scrollIntoView();
|
this.element.find('.has-error')[0].scrollIntoView();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user