Skip to content

Commit

Permalink
default cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerijus Barauskas committed Mar 1, 2012
1 parent 05dd257 commit d507695
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions public/js/990-vimbadmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,29 @@ $( 'document' ).ready( function(){

});

//****************************************************************************
// ViMbAdmin cookies
//****************************************************************************

var vm_cookie_options = {
'expires': 90,
'path': "/"
}

var vm_prefs = {
'iLength' : 10,
};

cprefs = $.jsonCookie( 'vm_prefs' );
if( cprefs != null )
vm_prefs = cprefs;


//****************************************************************************
// ViMbAdmin global js functions
//****************************************************************************


/**
* This function creates throbber with some default parameters and return the throbber object.
*
Expand Down

0 comments on commit d507695

Please sign in to comment.