Changes

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

Navigation menu