Changes

Jump to navigation Jump to search
no edit summary
Line 28: Line 28:  
label: 'label'
 
label: 'label'
 
} );
 
} );
  save.on( 'click', function () {
+
save.on( 'click', function () {
             mw.cookie.set( key.getValue(), value.getValue() )});
+
      if (radio.getValue() == "cookie") {
 +
             mw.cookie.set( key.getValue(), value.getValue() )});}
 +
      else {
 +
            mw.storage.set( key.getValue(), value.getValue() )});}
 +
  }
 
          
 
          
 
show.on( 'click', function () {
 
show.on( 'click', function () {
 +
      if (radio.getValue() == "cookie") {
 
             info.setLabel(mw.cookie.get(key.getValue()))});
 
             info.setLabel(mw.cookie.get(key.getValue()))});
 +
      else {
 +
            info.setLabel(mw.storage.get(key.getValue()))});
 +
          }
 +
    
   $( '#mw-content-text' ).prepend(
 
   $( '#mw-content-text' ).prepend(

Navigation menu