Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
mw.notify( $('<span>storage2</span>') );
+
mw.notify( $('<span>storage</span>') );
 
mw.loader.using( 'oojs-ui-core' ).done( function () {
 
mw.loader.using( 'oojs-ui-core' ).done( function () {
 
$( function () {
 
$( function () {
Line 29: Line 29:  
} );
 
} );
    +
 +
        save.on( 'click', function () {
 +
    if (radio.getData() == "cookie") {
 +
            mw.cookie.set( key.getValue(), value.getValue() );
 +
  }
 +
      else {
 +
            mw.storage.set( key.getValue(), value.getValue() );
 +
  }});
 +
 +
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