Changes

Jump to navigation Jump to search
no edit summary
Line 31: Line 31:     
save.on( 'click', function () {
 
save.on( 'click', function () {
 +
alert(radio.getData())
 
      if (radio.getData() == "cookie") {
 
      if (radio.getData() == "cookie") {
 
             mw.cookie.set( key.getValue(), value.getValue() );
 
             mw.cookie.set( key.getValue(), value.getValue() );
Line 39: Line 40:       −
 
+
show.on( 'click', function () {
 +
      if (radio.getData() == "cookie") {
 +
            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