includes/clientside/static/messagebox.js
changeset 699 c7d737202d59
parent 694 43367c66d869
child 779 609e35845ec3
equal deleted inserted replaced
696:bd5069e1f19a 699:c7d737202d59
   323 function miniPrompt(call_on_create)
   323 function miniPrompt(call_on_create)
   324 {
   324 {
   325   if ( !aclDisableTransitionFX )
   325   if ( !aclDisableTransitionFX )
   326   {
   326   {
   327     load_component('flyin');
   327     load_component('flyin');
   328     load_component('SpryEffects');
   328     load_component('jquery');
       
   329     load_component('jquery-ui');
   329   }
   330   }
   330   var darkener = darken(aclDisableTransitionFX, 40, 'miniprompt_darkener');
   331   var darkener = darken(aclDisableTransitionFX, 40, 'miniprompt_darkener');
   331   
   332   
   332   var wrapper = document.createElement('div');
   333   var wrapper = document.createElement('div');
   333   wrapper.className = 'miniprompt';
   334   wrapper.className = 'miniprompt';
   370   darkener.miniprompt = wrapper;
   371   darkener.miniprompt = wrapper;
   371   darkener.onclick = function()
   372   darkener.onclick = function()
   372   {
   373   {
   373     if ( !aclDisableTransitionFX )
   374     if ( !aclDisableTransitionFX )
   374     {
   375     {
   375       // for some reason, spry's pulsate effects takes duration in ms instead of seconds.
   376       $(this.miniprompt).effect("pulsate", { times: 2 }, 200);
   376       (new Spry.Effect.Pulsate(this.miniprompt, { duration: 500, from: '100%', to: '70%' })).start();
       
   377     }
   377     }
   378   }
   378   }
   379   
   379   
   380   return wrapper;
   380   return wrapper;
   381 }
   381 }