SOLR-3515: Use seperate Cookies for Analysis and Schema-Browser

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1347712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2012-06-07 16:59:11 +00:00
parent 090a3bc04f
commit 68734bd459
2 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@
limitations under the License.
*/
var cookie_name = 'analysis_verbose';
var cookie_analysis_verbose = 'analysis_verbose';
// #/:core/analysis
sammy.get
@ -217,14 +217,14 @@ sammy.get
'click',
function( event )
{
$.cookie( cookie_name, $.cookie( cookie_name ) ? null : true );
$.cookie( cookie_analysis_verbose, $.cookie( cookie_analysis_verbose ) ? null : true );
$( this )
.trigger( 'toggle' );
}
);
if( $.cookie( cookie_name ) )
if( $.cookie( cookie_analysis_verbose ) )
{
verbose_link
.trigger( 'toggle' );

View File

@ -16,7 +16,7 @@
*/
var current_core = null;
var cookie_name = 'schema-browser_autoload';
var cookie_schema_browser_autoload = 'schema-browser_autoload';
var luke_array_to_struct = function( array )
{
@ -1124,7 +1124,7 @@ sammy.get
'click',
function( event )
{
$.cookie( cookie_name, $.cookie( cookie_name ) ? null : true );
$.cookie( cookie_schema_browser_autoload, $.cookie( cookie_schema_browser_autoload ) ? null : true );
$( this ).trigger( 'state' );
return false;
@ -1136,7 +1136,7 @@ sammy.get
'state',
function( event )
{
$.cookie( cookie_name )
$.cookie( cookie_schema_browser_autoload )
? $( this ).addClass( 'on' )
: $( this ).removeClass( 'on' );
}
@ -1147,7 +1147,7 @@ sammy.get
'init',
function( event )
{
if( !$.cookie( cookie_name ) )
if( !$.cookie( cookie_schema_browser_autoload ) )
{
return false;
}