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 () {
 
      if (radio.getValue() == "cookie") {
 
      if (radio.getValue() == "cookie") {
Line 34: Line 35:  
      else {
 
      else {
 
             mw.storage.set( key.getValue(), value.getValue() );
 
             mw.storage.set( key.getValue(), value.getValue() );
  });
+
  }});
 
          
 
          
 
show.on( 'click', function () {
 
show.on( 'click', function () {
      if (radio.getValue() == "cookie") {
+
      if (radio.getValue() == "cookie") {
 
             info.setLabel(mw.cookie.get(key.getValue()))});
 
             info.setLabel(mw.cookie.get(key.getValue()))});
 
      else {
 
      else {
 
             info.setLabel(mw.storage.get(key.getValue()))});
 
             info.setLabel(mw.storage.get(key.getValue()))});
           });
+
           }});
     

Navigation menu