Sha256: 29267f1131c3fdc51224d2e922bddbfade0385a298c9327339646dd2dac37f8f

Contents?: true

Size: 689 Bytes

Versions: 10

Compression:

Stored size: 689 Bytes

Contents

pd = function(){ console.log.apply(console, arguments) }

if(plugin.canChangeMenu())
{
	theWebUI.saberFetch = function(id){
    theWebUI.perform("saberFetch");
  }

	plugin.createMenu = theWebUI.createMenu;
	theWebUI.createMenu = function( e, id )
	{
		plugin.createMenu.call(this, e, id);
		if (plugin.enabled)
		{
      theContextMenu.add(["Saber Fetch", "theWebUI.saberFetch('"+id+"')"]);
		}
	}
}

rTorrentStub.prototype.saberFetch = function()
{
  var cmd = new rXMLRPCCommand("execute");
  cmd.addParameter("string", "saber-drb_add");
  cmd.addParameter("string", this.hashes.join(","));
  cmd.addParameter("string", "saber");
  this.commands.push(cmd);
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
saber-1.2.4 rutorrent/init.js
saber-1.2.3 rutorrent/init.js
saber-1.2.2 rutorrent/init.js
saber-1.2.1 rutorrent/init.js
saber-1.2.0 rutorrent/init.js
saber-1.1.1 rutorrent/init.js
saber-1.1.0 rutorrent/init.js
saber-1.0.2 rutorrent/init.js
saber-1.0.1 rutorrent/init.js
saber-1.0.0 rutorrent/init.js