rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
print("reconnect");
doTest1 = function() { al = ar = lp = rp = null; ports = allocatePorts( 7 ); aPort = ports[ 0 ]; alPort = ports[ 1 ]; arPort = ports[ 2 ]; lPort = ports[ 3 ]; lpPort = ports[ 4 ]; rPort = ports[ 5 ]; rpPort = ports[ 6 ]; connect(); a = new MongodRunner( aPort, "/data/db/" + base...
print("disconnect new master");
doTest1 = function() { al = ar = lp = rp = null; ports = allocatePorts( 7 ); aPort = ports[ 0 ]; alPort = ports[ 1 ]; arPort = ports[ 2 ]; lPort = ports[ 3 ]; lpPort = ports[ 4 ]; rPort = ports[ 5 ]; rpPort = ports[ 6 ]; connect(); a = new MongodRunner( aPort, "/data/db/" + base...
print("reconnect slave");
doTest1 = function() { al = ar = lp = rp = null; ports = allocatePorts( 7 ); aPort = ports[ 0 ]; alPort = ports[ 1 ]; arPort = ports[ 2 ]; lPort = ports[ 3 ]; lpPort = ports[ 4 ]; rPort = ports[ 5 ]; rpPort = ports[ 6 ]; connect(); a = new MongodRunner( aPort, "/data/db/" + base...
print("reconnect old master");
doTest1 = function() { al = ar = lp = rp = null; ports = allocatePorts( 7 ); aPort = ports[ 0 ]; alPort = ports[ 1 ]; arPort = ports[ 2 ]; lPort = ports[ 3 ]; lpPort = ports[ 4 ]; rPort = ports[ 5 ]; rpPort = ports[ 6 ]; connect(); a = new MongodRunner( aPort, "/data/db/" + base...
var result = master.getDB(db).runCommand({getlasterror: 1, w: w, wtimeout: timeout});
var result = master.getDB(db).getLastErrorObj( w , timeout );
doTest = function( signal ) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to star...
callGetLastError(3, 100000, testDB);
callGetLastError(3, 60000, testDB);
doTest = function( signal ) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to star...
for(var n=0; n<1000; n++)
for(var n=0; n<1000; n++) {
doTest = function( signal ) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to star...
callGetLastError(3, 60000);
} callGetLastError(3, 60000, testDB);
doTest = function( signal ) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to star...
m1 = collection.findOne({n: 999});
data = collection.findOne({n: 999});
doTest = function( signal ) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to star...
master.getDB("admin").runCommand({replSetStepDown: true});
var phase = 1; print(phase++); try { master.getDB("admin").runCommand({ replSetStepDown: true }); } catch (err) { print("caught: " + err + " on stepdown"); } print(phase++);
doTest = function( signal ) { // Test replica set step down // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod in the replica set // this ...
assert( master != new_master, "Old master shouldn't be equal to new master." );
print(phase++); assert(master != new_master, "Old master shouldn't be equal to new master."); print(phase++);
doTest = function( signal ) { // Test replica set step down // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod in the replica set // this ...
var result = new_master.getDB("admin").runCommand({replSetGetStatus: 1}); assert( result['ok'] == 1, "Could not verify that slaves were still up:" + result );
var result = new_master.getDB("admin").runCommand({ replSetGetStatus: 1 }); assert(result['ok'] == 1, "Could not verify that slaves were still up:" + result); print(phase++);
doTest = function( signal ) { // Test replica set step down // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod in the replica set // this ...
assert.soon(function() { res = slaves[0].getDB("admin").runCommand({replSetGetStatus: 1})
assert.soon(function () { try { res = slaves[0].getDB("admin").runCommand({ replSetGetStatus: 1 }) } catch (err) { }
doTest = function( signal ) { // Test replica set step down // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod in the replica set // this ...
assert.soon(function() { res = slaves[1].getDB("admin").runCommand({replSetGetStatus: 1})
print(phase++); assert.soon(function () { try { res = slaves[1].getDB("admin").runCommand({ replSetGetStatus: 1 }) } catch (err) { }
doTest = function( signal ) { // Test replica set step down // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod in the replica set // this ...
replTest.stopSet( 15 );
print("replset3.js SUCCESS"); replTest.stopSet(15);
doTest = function( signal ) { // Test replica set step down // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod in the replica set // this ...
var result = dbs[0].runCommand({replSetTest : 1, blind : false});
var result = dbs[0].getSisterDB("admin").runCommand({replSetTest : 1, blind : false}); dbs[0].getMongo().setSlaveOk(); printjson(result); sleep(5000);
doTest = function( signal ) { var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); var nodes = replTest.startSet({oplogSize : "40"}); sleep(5000); replTest.initiate(); // get master var master = replTest.getMaster(); var dbs = [master.getDB("foo")]; for (var i in nodes) { if (no...
var replTest = new ReplSetTest({ name: 'testSet', nodes: 3 });
var replTest = new ReplSetTest({ name: 'testSet', nodes: 3, oplogSize: 5 });
doTest = function (signal) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest({ name: 'testSet', nodes: 3 }); // call startSet() to start...
} catch(e) { print("ERROR: " + e); print("Master oplog findOne:"); printjson(master.getDB("local").oplog.rs.find().sort({"$natural": -1}).limit(1).next()); print("Slave 0 oplog findOne:"); printjson(slaves[0].getDB("local").oplog.rs.find().sort({"$natural": -1}).limit(1).next()); print("Slave 1 oplog findOne:"); printj...
doTest = function (signal) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest({ name: 'testSet', nodes: 3 }); // call startSet() to start...
var result = master.getDB(db).getLastErrorObj(w, timeout); print("replset2.js getLastError result: " + tojson(result)); if (result['ok'] != 1) { print("replset2.js FAILURE getlasterror not ok"); failed = true;
try { var result = master.getDB(db).getLastErrorObj(w, timeout); print("replset2.js getLastError result: " + tojson(result)); if (result['ok'] != 1) { print("replset2.js FAILURE getlasterror not ok"); failed = true; } } catch (e) { print("\nreplset2.js exception in getLastError: " + e + '\n'); throw e;
doTest = function (signal) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest({ name: 'testSet', nodes: 3 }); // call startSet() to start...
callGetLastError(3, 10000, testDB);
callGetLastError(3, 25000, testDB);
doTest = function (signal) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest({ name: 'testSet', nodes: 3 }); // call startSet() to start...
assert.eq( 1, t.find( { a: { $ne: 8, $nin: [ 2, 3 ] } } ).count() , n + " I2" );
doTest = function( n ) { t.save( { a:[ 1,2,3 ] } ); t.save( { a:[ 1,2,4 ] } ); t.save( { a:[ 1,8,5 ] } ); t.save( { a:[ 1,8,6 ] } ); t.save( { a:[ 1,9,7 ] } ); assert.eq( 5, t.find( { a: { $nin: [ 10 ] } } ).count() , n + " A" ); assert.eq( 0, t.find( { a: { $ne: 1 } } ).count() , n + " B" ...
printjson(master.stats()); print("sleeping"); sleep(20000);
doTest = function( signal ) { var name = "buildIndexes"; var host = getHostName(); var replTest = new ReplSetTest( {name: name, nodes: 3} ); var nodes = replTest.startSet(); var config = replTest.getReplSetConfig(); config.members[2].priority = 0; config.members[2].buildIndexes = false; replTest.initiate(co...
return status.members[2].state == 2 || status.members[2].state == 1;
return status.members && status.members[2].state == 2 || status.members[2].state == 1;
var doTest = function() {print("1. Bring up set");var replTest = new ReplSetTest( {name: basename, nodes: 2} );var conns = replTest.startSet();replTest.initiate();var master = replTest.getMaster();var origMaster = master;var foo = master.getDB("foo");var admin = master.getDB("admin");var slave1 = replTest.liveNodes.sla...
sleep(5000); orig.initiate();
doTest = function( signal ) { var orig = new ReplSetTest( {name: 'testSet', nodes: 3} ); orig.startSet(); var interloper = new ReplSetTest( {name: 'testSet', nodes: 3, startPort : 31003} ); interloper.startSet(); sleep(5000); orig.initiate(); interloper.initiate(); sleep(5000); var master = o...
sleep(5000); var master = orig.getMaster();
doTest = function( signal ) { var orig = new ReplSetTest( {name: 'testSet', nodes: 3} ); orig.startSet(); var interloper = new ReplSetTest( {name: 'testSet', nodes: 3, startPort : 31003} ); interloper.startSet(); sleep(5000); orig.initiate(); interloper.initiate(); sleep(5000); var master = o...
var repset = new ReplicaSet ('testSet', 3) .start()
var repset = new ReplicaSet ('testSet', 3) .begin()
doTest = function( signal ) { var N = 2000 // ~1KB string var Text = '' for (var i = 0; i < 40; i++) Text += 'abcdefghijklmnopqrstuvwxyz' // Create replica set var repset = new ReplicaSet ('testSet', 3) .start() var master = repset.getMaster() var db1 = master.getDB('test') // Inse...
var soloConn = solo.start()
var soloConn = solo.begin()
doTest = function( signal ) { var N = 2000 // ~1KB string var Text = '' for (var i = 0; i < 40; i++) Text += 'abcdefghijklmnopqrstuvwxyz' // Create replica set var repset = new ReplicaSet ('testSet', 3) .start() var master = repset.getMaster() var db1 = master.getDB('test') // Inse...
stopMongod (solo.port, signal)
doTest = function( signal ) { var N = 2000 // ~1KB string var Text = '' for (var i = 0; i < 40; i++) Text += 'abcdefghijklmnopqrstuvwxyz' // Create replica set var repset = new ReplicaSet ('testSet', 3) .start() var master = repset.getMaster() var db1 = master.getDB('test') // Inse...
A.runCommand({ replSetTest: 1, blind: false }); wait(function () { return !B.isMaster().ismaster; });
try { A.runCommand({ replSetTest: 1, blind: false }); } catch(e) { print(e); } wait(function () { try { return !B.isMaster().ismaster; } catch(e) { return false; } });
doTest = function (signal) { var replTest = new ReplSetTest({ name: 'unicomplex', nodes: 3 }); var nodes = replTest.nodeList(); //print(tojson(nodes)); var conns = replTest.startSet(); var r = replTest.initiate({ "_id": "unicomplex", "members": [ { "_id": 0, "host": nod...
var result = master.getDB("admin").runCommand({replSetReconfig : conf});
try { var result = master.getDB("admin").runCommand({replSetReconfig : conf}); } catch(e) { print(e); }
doTest = function( signal ) { var orig = new ReplSetTest( {name: 'testSet', nodes: 3} ); orig.startSet(); var interloper = new ReplSetTest( {name: 'testSet', nodes: 3, startPort : 31003} ); interloper.startSet(); sleep(5000); orig.initiate(); interloper.initiate(); sleep(5000); var master = o...
config.members = [ { "_id" : 0, "host" : "arete.local:31000" }, { "_id" : 2, "host" : "arete.local:31002" } ]
config.members = [ { "_id" : 0, "host" : replTest.host + ":31000" }, { "_id" : 2, "host" : replTest.host + ":31002" } ]
doTest = function( signal ) { // Make sure that we can manually shutdown a remove a // slave from the configuration. // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod...
replTest.initiate( config , 'replSetReconfig' );
doTest = function( signal ) { // Make sure that we can manually shutdown a remove a // slave from the configuration. // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod...
try { replTest.initiate( config , 'replSetReconfig' ); } catch(e) { print(e); }
doTest = function( signal ) { // Make sure that we can manually shutdown a remove a // slave from the configuration. // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod...
assert.eq(indexes, 2);
assert.eq(indexes, 2, 'number of indexes');
doTest = function( signal ) { var name = "buildIndexes"; var host = getHostName(); var replTest = new ReplSetTest( {name: name, nodes: 3} ); var nodes = replTest.startSet(); var config = replTest.getReplSetConfig(); config.members[2].priority = 0; config.members[2].buildIndexes = false; replTest.initiate(co...
var ok = admin.runCommand({replSetReconfig : config}); assert.eq(ok.ok,1);
try { var ok = admin.runCommand({replSetReconfig : config}); assert.eq(ok.ok,1); } catch(e) { print(e); }
doTest = function( signal ) { var name = "slaveDelay"; var host = getHostName(); var replTest = new ReplSetTest( {name: name, nodes: 3} ); var nodes = replTest.startSet(); /* set slaveDelay to 30 seconds */ var config = replTest.getReplSetConfig(); config.members[2].priority = 0; config.members[2].slaveDelay ...
replTest.awaitReplication(); print("creating an index on x");
doTest = function( signal ) { var name = "buildIndexes"; var host = getHostName(); var replTest = new ReplSetTest( {name: name, nodes: 3} ); var nodes = replTest.startSet(); var config = replTest.getReplSetConfig(); config.members[2].priority = 0; config.members[2].buildIndexes = false; replTest.initiate(co...
printjson(slave[0].runCommand({replSetGetStatus:1}));
printjson(slave[0].adminCommand({replSetGetStatus:1}));
doTest = function( signal ) { var name = "buildIndexes"; var host = getHostName(); var replTest = new ReplSetTest( {name: name, nodes: 3} ); var nodes = replTest.startSet(); var config = replTest.getReplSetConfig(); config.members[2].priority = 0; config.members[2].buildIndexes = false; replTest.initiate(co...
printjson(master.stats());
printjson(master.x.stats()); printjson(slave[0].x.stats()); printjson(slave[1].x.stats());
doTest = function( signal ) { var name = "buildIndexes"; var host = getHostName(); var replTest = new ReplSetTest( {name: name, nodes: 3} ); var nodes = replTest.startSet(); var config = replTest.getReplSetConfig(); config.members[2].priority = 0; config.members[2].buildIndexes = false; replTest.initiate(co...
assert.eq( 1, t.find( { $or: [ { a: {$in:[0,1]}}, { b: {$in:[0,1]}} } ] } ).toArray().length );
assert.eq( 1, t.find( { $or: [ { a: {$in:[0,1]}}, { b: {$in:[0,1]}} ] } ).toArray().length );
doTest = function() {t.save( {_id:0,a:1} );t.save( {_id:1,a:2} );t.save( {_id:2,b:1} );t.save( {_id:3,b:2} );t.save( {_id:4,a:1,b:1} );t.save( {_id:5,a:1,b:2} );t.save( {_id:6,a:2,b:1} );t.save( {_id:7,a:2,b:2} );assert.throws( function() { t.find( { $or:"a" } ).toArray(); } );assert.throws( function() { t.find( { $or:...
A.runCommand({ replSetTest: 1, blind: false }); wait(function () { return !B.isMaster().ismaster; });
try { A.runCommand({ replSetTest: 1, blind: false }); } catch(e) { print(e); } wait(function () { try { return !B.isMaster().ismaster; } catch(e) { return false; } });
doTest = function (signal) { var replTest = new ReplSetTest({ name: 'unicomplex', nodes: 3 }); var nodes = replTest.nodeList(); //print(tojson(nodes)); var conns = replTest.startSet(); var r = replTest.initiate({ "_id": "unicomplex", "members": [ { "_id": 0, "host": nod...
replTest.reInitiate();
var c = master.getDB("local")['system.replset'].findOne(); var config = replTest.getReplSetConfig(); config.version = c.version + 1; config.members = [ { "_id" : 0, "host" : "arete.local:31000" }, { "_id" : 2, "host" : "arete.local:31002" } ] replTest.initiate( config , 'replSetReconfig' );
doTest = function( signal ) { // Make sure that we can manually shutdown a remove a // slave from the configuration. // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() to start each mongod...
replTest.restart( master_id );
doTest = function( signal ) { // Test basic replica set functionality. // -- Replication // -- Failover // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() t...
assert( count.n == 1000 , slave + " expected 1000 but count was " + count.n);
assert.eq( 1000 , count.n , "slave count wrong: " + slave );
doTest = function( signal ) { // Test basic replica set functionality. // -- Replication // -- Failover // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest( {name: 'testSet', nodes: 3} ); // call startSet() t...
rt.stop( false ); cm.save( { x:3 } ); bm.save( { x:4 } ); s = rt.start( false, { only: "c" }, true ); soonCount( "c", "c", 2 );
doTest = function() { rt = new ReplTest( "repl4tests" ); m = rt.start( true ); s = rt.start( false, { only: "c" } ); cm = m.getDB( "c" ).c bm = m.getDB( "b" ).b cm.save( { x:1 } ); bm.save( { x:2 } ); soonCount( "c", "c", 1 ); assert.eq( 1, s.getDB( "c" ).c.findOne().x ); sleep...
var s0 = slaves[0].getDB(testDB).foo.findOne({ n: 1 });
s0 = slaves[0].getDB(testDB).foo.findOne({ n: 1 });
doTest = function (signal) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest({ name: 'testSet', nodes: 3 }); // call startSet() to start...
var s1 = slaves[1].getDB(testDB).foo.findOne({ n: 1 });
s1 = slaves[1].getDB(testDB).foo.findOne({ n: 1 });
doTest = function (signal) { // FAILING TEST // See below: // Test replication with getLastError // Replica set testing API // Create a new replica set test. Specify set name and the number of nodes you want. var replTest = new ReplSetTest({ name: 'testSet', nodes: 3 }); // call startSet() to start...
master = connect(result.primary+"/admin");
master = connect(result.primary+"/admin").getMongo();
var doTest = function() {print("1. Bring up set");var replTest = new ReplSetTest( {name: basename, nodes: 2} );var conns = replTest.startSet();replTest.initiate();var master = replTest.getMaster();var origMaster = master;var foo = master.getDB("foo");var admin = master.getDB("admin");var slave1 = replTest.liveNodes.sla...
A.runCommand({ replSetTest: 1, blind: false }); wait(function () { return !B.isMaster().ismaster; });
try { A.runCommand({ replSetTest: 1, blind: false }); } catch(e) { print(e); } wait(function () { try { return !B.isMaster().ismaster; } catch(e) { return false; } });
doTest = function (signal) { var replTest = new ReplSetTest({ name: 'unicomplex', nodes: 3 }); var nodes = replTest.nodeList(); //print(tojson(nodes)); var conns = replTest.startSet(); var r = replTest.initiate({ "_id": "unicomplex", "members": [ { "_id": 0, "host": nod...
db.eval( function( size ) { for( i = 0; i < size; ++i ) { db.jstests_index12.save( {i:i} ); } }, size ); assert.eq( size, t.count() ); doParallel( fullName + ".ensureIndex( {i:1}, {background:true, unique:true, dropDups:" + dropDups + "} )" ); try { assert.soon( function() { return 2 == db.system.indexes.count( {ns:"...
db.eval(function(size) { for (i = 0; i < size; ++i) { db.jstests_index12.save({ i: i }); } }, size); assert.eq(size, t.count()); doParallel(fullName + ".ensureIndex( {i:1}, {background:true, unique:true, dropDups:" + dropDups + "} )"); try { assert.soon(function() { return 2 == db.system.indexes.count({ ns: "test." +...
doTest = function( dropDups ) {size = 10000;while( 1 ) { // if indexing finishes before we can run checks, try indexing w/ more data print( "size: " + size ); baseName = "jstests_index12"; fullName = "db." + baseName; t = db[ baseName ]; t.drop(); db.eval( function( size ) { for( i = 0;...
if ( !doneParallel() ) { break;
waitParallel(); if( dropDups == "true" ) { assert.eq(size, t.find().toArray().length, "full query failed"); assert.eq(size, t.count(), "count failed");
doTest = function( dropDups ) {size = 10000;while( 1 ) { // if indexing finishes before we can run checks, try indexing w/ more data print( "size: " + size ); baseName = "jstests_index12"; fullName = "db." + baseName; t = db[ baseName ]; t.drop(); db.eval( function( size ) { for( i = 0;...
print( "indexing finished too soon, retrying..." ); size *= 2; assert( size < 5000000, "unable to run checks in parallel with index creation" );
else { if (t.count() != size) assert.eq(1, t.getIndexes().length, "change in # of elems yet index is there"); }
doTest = function( dropDups ) {size = 10000;while( 1 ) { // if indexing finishes before we can run checks, try indexing w/ more data print( "size: " + size ); baseName = "jstests_index12"; fullName = "db." + baseName; t = db[ baseName ]; t.drop(); db.eval( function( size ) { for( i = 0;...
waitParallel(); assert.eq( size, t.find().toArray().length, "full query failed" ); assert.eq( size, t.count(), "count failed" ); }
doTest = function( dropDups ) {size = 10000;while( 1 ) { // if indexing finishes before we can run checks, try indexing w/ more data print( "size: " + size ); baseName = "jstests_index12"; fullName = "db." + baseName; t = db[ baseName ]; t.drop(); db.eval( function( size ) { for( i = 0;...
return jwplayer.utils.canDownload(vid, item.file, item.provider, item.playlistfile);
return jwplayer.utils.canDownload(item.file, item.provider, item.playlistfile);
jwplayer.utils.downloadSupportsConfig = function(config) { if (config) { var item = jwplayer.utils.getFirstPlaylistItemFromConfig(config); if (typeof item.file == "undefined" && typeof item.levels == "undefined") { return true; } else if (item.file) { return jwplayer.utils.canDownload(vid, item.file, i...
if (item.levels[i].file && jwplayer.utils.canDownload(vid, item.levels[i].file, item.provider, item.playlistfile)) {
if (item.levels[i].file && jwplayer.utils.canDownload(item.levels[i].file, item.provider, item.playlistfile)) {
jwplayer.utils.downloadSupportsConfig = function(config) { if (config) { var item = jwplayer.utils.getFirstPlaylistItemFromConfig(config); if (typeof item.file == "undefined" && typeof item.levels == "undefined") { return true; } else if (item.file) { return jwplayer.utils.canDownload(vid, item.file, i...
var item = jwplayer.utils.getFirstPlaylistItemFromConfig(config); if (item.playlistfile) { return false; } var extension = jwplayer.utils.extension(item.file); if (extension && jwplayer.utils.extensionmap[extension]) {
if (config) { var item = jwplayer.utils.getFirstPlaylistItemFromConfig(config); if (typeof item.file == "undefined" && typeof item.levels == "undefined") { return true; } else if (item.file) { return jwplayer.utils.canDownload(vid, item.file, item.provider, item.playlistfile); } else if (item.levels && item.levels.len...
jwplayer.utils.downloadSupportsConfig = function(config) { var item = jwplayer.utils.getFirstPlaylistItemFromConfig(config); // Don't support playlists if (item.playlistfile) { return false; } var extension = jwplayer.utils.extension(item.file); // Only download if it's in the extension map or YouTube if ...
if (item.provider && item.provider == "youtube") { return true; } return false;
jwplayer.utils.downloadSupportsConfig = function(config) { var item = jwplayer.utils.getFirstPlaylistItemFromConfig(config); // Don't support playlists if (item.playlistfile) { return false; } var extension = jwplayer.utils.extension(item.file); // Only download if it's in the extension map or YouTube if ...
same(ui, {}, 'ui hash in callback');
ok(ui.position !== undefined, "ui.position in callback"); ok(ui.offset !== undefined, "ui.offset in callback");
drag: function(ev, ui) { if (!hasDragged) { ok(true, 'dragging fires drag callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogdrag', 'event type in callback'); same(ui, {}, 'ui hash in callback'); hasDragged = true; } }
drag: function(event) { self._trigger('drag', event);
drag: function(event, ui) { self._trigger('drag', event, ui);
drag: function(event) { self._trigger('drag', event); },
drag: function(event, ui) { var inst = $(this).data("draggable"), o = inst.options; var d = o.snapTolerance; var x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width, y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height; for (var i = inst.snapElements.length - 1; i >= 0; i--){ var l = inst.snapElement...
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
drag: function(event, ui) { var inst = $(this).data("draggable"), o = inst.options; var d = o.snapTolerance; var x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width, y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height; for (var i = inst.snapElements.length - 1; i >= 0; i--){ var l = inst.snapEl...
this.simulateEvent(target, "click", coord);
drag: function(el) { var self = this, center = this.findCenter(this.target), options = this.options, x = Math.floor(center.x), y = Math.floor(center.y), dx = options.dx || 0, dy = options.dy || 0, target = this.target; var coord = { clientX: x, clientY: y }; this.simulateEvent(target, "mousedown", coord); co...
self._trigger('drag', event, ui);
self._trigger('drag', event, filteredUi(ui));
drag: function(event, ui) { self._trigger('drag', event, ui); },
same(ui, {}, 'ui hash in callback');
ok(ui.position !== undefined, "ui.position in callback"); ok(ui.offset !== undefined, "ui.offset in callback");
dragStart: function(ev, ui) { ok(true, 'dragging fires dragStart callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogdragstart', 'event type in callback'); same(ui, {}, 'ui hash in callback'); }
same(ui, {}, 'ui hash in callback');
ok(ui.position !== undefined, "ui.position in callback"); ok(ui.offset !== undefined, "ui.offset in callback");
dragStop: function(ev, ui) { ok(true, 'dragging fires dragStop callback'); equals(this, el[0], "context of callback"); equals(ev.type, 'dialogdragstop', 'event type in callback'); same(ui, {}, 'ui hash in callback'); }
{ var img_b = 'img/bateauPremier.png'; } else { var img_b = 'img/bateauEnCourse.png'; }
{ first_idu = boat_idu[k]; first_color = boat_color[k]; var img_b = 'img/bateauPremier.png'; } else { var img_b = 'img/bateauEnCourse.png'; }
function draw_all_boats(){ //"idusers","boatpseudo","boatname","color","country","nwp","dnm","deptime","loch","releasetime","latitude","longitude","last1h","last3h","last24h","status","rank" boat_idu = new Array(); boat_rank = new Array(); boat_color = new Array(); boat_pos = new Array(); boat_mark = new Array(); boat_...
attachInfoWindow(boat_mark[k], boat_texte[k], boat_rank[k]); if(boats[k].latitude > 0 && boats[k].longitude > 0) { get_track(boat_idu[k],boat_color[k]); }
attachInfoWindow(boat_mark[k], boat_texte[k], boat_rank[k], boat_idu[k], boat_color[k]);
function draw_all_boats(){ //"idusers","boatpseudo","boatname","color","country","nwp","dnm","deptime","loch","releasetime","latitude","longitude","last1h","last3h","last24h","status","rank" boat_idu = new Array(); boat_rank = new Array(); boat_color = new Array(); boat_pos = new Array(); boat_mark = new Array(); boat_...
if(i>32) { return; }
if(i>32) { if( first_idu != "") { get_track(first_idu,first_color); } return; }
function draw_all_boats(){ //"idusers","boatpseudo","boatname","color","country","nwp","dnm","deptime","loch","releasetime","latitude","longitude","last1h","last3h","last24h","status","rank" boat_idu = new Array(); boat_rank = new Array(); boat_color = new Array(); boat_pos = new Array(); boat_mark = new Array(); boat_...
if(boats[idu].rank > 32) {
function draw_one_boat(idu){if(boats[idu].rank > 32){get_track(idu,boats[idu].color);boat_texte[idu] = make_boat_texte(boats[idu].idusers);boat_pos[idu] = new google.maps.LatLng(boats[idu].latitude,boats[idu].longitude);var img_b = 'img/bateauEnCourse.png';var image = new google.maps.MarkerImage(img_b, new google.maps...
}
function draw_one_boat(idu){if(boats[idu].rank > 32){get_track(idu,boats[idu].color);boat_texte[idu] = make_boat_texte(boats[idu].idusers);boat_pos[idu] = new google.maps.LatLng(boats[idu].latitude,boats[idu].longitude);var img_b = 'img/bateauEnCourse.png';var image = new google.maps.MarkerImage(img_b, new google.maps...
var drawSelection = function(elementToSelect, handler) { if (handler) { handler(elementToSelect); } };
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
var drawSelection = function(elementToSelect, handler) { if (handler) { handler(elementToSelect); } };
dropped = this._drop.call(this, event);
dropped = dropped || this._drop.call(this, event);
drop: function(draggable, event) { var dropped = false; $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() { if(!this.options) return; if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) dropped = this._drop.call(this, event); if (!...
var el = $(this), props = ['position','top','left','opacity'];
var el = $(this), props = ['position','top','bottom','left','right','opacity'];
$.effects.drop = function(o) { return this.queue(function() { // Create element var el = $(this), props = ['position','top','left','opacity']; // Set options var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode var direction = o.options.direction || 'left'; // Default Direction // Adjust $.eff...
fluid.inlineEdit.dropdown = function (container, options) { return configureInlineEdit("fluid.inlineEdit.dropdown", container, options); };
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
fluid.inlineEdit.dropdown = function (container, options) { return configureInlineEdit("fluid.inlineEdit.dropdown", container, options); };
if (object == null) { return 'null'; } else if ($.fn.jwplayerUtils.typeOf(object) != 'object') { if ($.fn.jwplayerUtils.typeOf(object) == 'string'){ return"\""+object+"\""; } return object;
if (object == null) { return 'null'; } else if ($.fn.jwplayerUtils.typeOf(object) != 'object') { if ($.fn.jwplayerUtils.typeOf(object) == 'string'){ return"\""+object+"\"";
$.fn.jwplayerUtils.dump = function(object, depth) { if (object == null) { return 'null'; } else if ($.fn.jwplayerUtils.typeOf(object) != 'object') { if ($.fn.jwplayerUtils.typeOf(object) == 'string'){ return"\""+object+"\""; } return object; } var type = $.fn.jwplayerUtils.typeOf(object); (depth == ...
var type = $.fn.jwplayerUtils.typeOf(object); (depth == undefined) ? depth = 1 : depth++; var indent = ""; for (var i = 0; i < depth; i++) { indent += "\t"; }
return object; } var type = $.fn.jwplayerUtils.typeOf(object); (depth == undefined) ? depth = 1 : depth++; var indent = ""; for (var i = 0; i < depth; i++) { indent += "\t"; }
$.fn.jwplayerUtils.dump = function(object, depth) { if (object == null) { return 'null'; } else if ($.fn.jwplayerUtils.typeOf(object) != 'object') { if ($.fn.jwplayerUtils.typeOf(object) == 'string'){ return"\""+object+"\""; } return object; } var type = $.fn.jwplayerUtils.typeOf(object); (depth == ...
var result = (type == "array") ? "[" : "{"; result += "\n"+indent;
var result = (type == "array") ? "[" : "{"; result += "\n"+indent; for (var i in object) { if (type == "object") { result += "\""+i+"\": "}; result += $.fn.jwplayerUtils.dump(object[i], depth)+",\n"+indent; }
$.fn.jwplayerUtils.dump = function(object, depth) { if (object == null) { return 'null'; } else if ($.fn.jwplayerUtils.typeOf(object) != 'object') { if ($.fn.jwplayerUtils.typeOf(object) == 'string'){ return"\""+object+"\""; } return object; } var type = $.fn.jwplayerUtils.typeOf(object); (depth == ...
for (var i in object) { if (type == "object") { result += "\""+i+"\": "}; result += $.fn.jwplayerUtils.dump(object[i], depth)+",\n"+indent; } result = result.substring(0, result.length-2-depth)+"\n";
result = result.substring(0, result.length-2-depth)+"\n";
$.fn.jwplayerUtils.dump = function(object, depth) { if (object == null) { return 'null'; } else if ($.fn.jwplayerUtils.typeOf(object) != 'object') { if ($.fn.jwplayerUtils.typeOf(object) == 'string'){ return"\""+object+"\""; } return object; } var type = $.fn.jwplayerUtils.typeOf(object); (depth == ...
result += indent.substring(0, indent.length-1); result += (type == "array") ? "]" : "}"; return result; }
result += indent.substring(0, indent.length-1); result += (type == "array") ? "]" : "}"; return result; };
$.fn.jwplayerUtils.dump = function(object, depth) { if (object == null) { return 'null'; } else if ($.fn.jwplayerUtils.typeOf(object) != 'object') { if ($.fn.jwplayerUtils.typeOf(object) == 'string'){ return"\""+object+"\""; } return object; } var type = $.fn.jwplayerUtils.typeOf(object); (depth == ...
fluid.dumpAttributes = function(attrcopy) { var togo = ""; for (var attrname in attrcopy) { var attrvalue = attrcopy[attrname]; if (attrvalue !== null && attrvalue !== undefined) { togo += " " + attrname + "=\"" + attrvalue + "\""; } } return togo; };
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
fluid.dumpAttributes = function(attrcopy) { var togo = ""; for (var attrname in attrcopy) { var attrvalue = attrcopy[attrname]; if (attrvalue !== null && attrvalue !== undefined) { togo += " " + attrname + "=\"" + attrvalue + "\""; } } return togo; };
function dumpBoundFields( torender, parent) { if (torender) { var holder = parent? parent : torender; if (directFossils && holder.submittingname && holder.valuebinding) { directFossils[holder.submittingname] = { name: holder.submittingname, EL: holder.valuebinding, oldvalue: holder.value}; applyAutoBind(torender, tor...
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
function dumpBoundFields(/** UIBound**/ torender, parent) { if (torender) { var holder = parent? parent : torender; if (directFossils && holder.submittingname && holder.valuebinding) { // TODO: this will store multiple times for each member of a UISelect ...
if (directFossils && holder.submittingname && holder.valuebinding) {
if (directFossils && holder.valuebinding) { var fossilKey = holder.submittingname || torender.finalID;
function dumpBoundFields(/** UIBound**/ torender, parent) { if (torender) { var holder = parent? parent : torender; if (directFossils && holder.submittingname && holder.valuebinding) { // TODO: this will store multiple times for each member of a UISelect ...
directFossils[holder.submittingname] = { name: holder.submittingname,
directFossils[fossilKey] = { name: fossilKey,
function dumpBoundFields(/** UIBound**/ torender, parent) { if (torender) { var holder = parent? parent : torender; if (directFossils && holder.submittingname && holder.valuebinding) { // TODO: this will store multiple times for each member of a UISelect ...
function dumpBranchHead(branch, targetlump) { if (targetlump.elide) { return; } var attrcopy = {}; $.extend(true, attrcopy, targetlump.attributemap); adjustForID(attrcopy, branch); outDecorators(branch, attrcopy); out += "<" + targetlump.tagname + " "; out += fluid.dumpAttributes(attrcopy); out += ">"; }
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
function dumpBranchHead(branch, targetlump) { if (targetlump.elide) { return; } var attrcopy = {}; $.extend(true, attrcopy, targetlump.attributemap); adjustForID(attrcopy, branch); outDecorators(branch, attrcopy); out += "<" + targetlump....
fluid.dumpEl = function (element) { var togo; if (!element) { return "null"; } if (element.nodeType === 3 || element.nodeType === 8) { return "[data: " + element.data + "]"; } if (element.nodeType === 9) { return "[document: location " + element.location + "]"; } if (!element.nodeType && typeof element.length === "num...
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
fluid.dumpEl = function (element) { var togo; if (!element) { return "null"; } if (element.nodeType === 3 || element.nodeType === 8) { return "[data: " + element.data + "]"; } if (element.nodeType === 9) { return "[document: locatio...
function dumpHiddenField( todump) { out += "<input type=\"hidden\" "; var isvirtual = todump.virtual; var outattrs = {}; outattrs[isvirtual? "id" : "name"] = todump.name; outattrs.value = todump.value; out += fluid.dumpAttributes(outattrs); out += " />\n"; }
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
function dumpHiddenField(/** UIParameter **/ todump) { out += "<input type=\"hidden\" "; var isvirtual = todump.virtual; var outattrs = {}; outattrs[isvirtual? "id" : "name"] = todump.name; outattrs.value = todump.value; out += fluid.dumpAttributes(outattrs); ...
function dumpScan(lumps, renderindex, basedepth, closeparent, insideleaf) { var start = renderindex; while (true) { if (renderindex === lumps.length) { break; } var lump = lumps[renderindex]; if (lump.nestingdepth < basedepth) { break; } if (lump.rsfID !== undefined) { if (!insideleaf) {break;} if (insideleaf && lump.n...
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
function dumpScan(lumps, renderindex, basedepth, closeparent, insideleaf) { var start = renderindex; while (true) { if (renderindex === lumps.length) { break; } var lump = lumps[renderindex]; if (lump.nestingdepth < basedepth) { break; ...
function dumpSelectionBindings(uiselect) { if (!renderedbindings[uiselect.selection.fullID]) { renderedbindings[uiselect.selection.fullID] = true; dumpBoundFields(uiselect.selection); dumpBoundFields(uiselect.optionlist); dumpBoundFields(uiselect.optionnames); } }
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
function dumpSelectionBindings(uiselect) { if (!renderedbindings[uiselect.selection.fullID]) { renderedbindings[uiselect.selection.fullID] = true; // set this true early so that selection does not autobind twice dumpBoundFields(uiselect.selection); dumpBoundFields(u...
function dumpTemplateBody() { if (trc.endopen.lumpindex === trc.close.lumpindex) { if (!trc.iselide) { out += "/>"; } } else { if (!trc.iselide) { out += ">"; } dumpTillLump(trc.uselump.parent.lumps, trc.endopen.lumpindex, trc.close.lumpindex + (trc.iselide ? 0 : 1)); } }
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
function dumpTemplateBody() { if (trc.endopen.lumpindex === trc.close.lumpindex) { if (!trc.iselide) { out += "/>"; } } else { if (!trc.iselide) { out += ">"; } dumpTillLump(trc.uselump.parent...
function dumpTillLump(lumps, start, limit) { for (; start < limit; ++ start) { var text = lumps[start].text; if (text) { out += lumps[start].text; } } }
(function($){$.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var self=this;this.element.bind("mousedown."+this.widgetName,function(event){return self._mouseDown(event)}).bind("click."+this.widgetName,function(event){if(self._preventClickEvent){self._preventClickEvent=false...
function dumpTillLump(lumps, start, limit) { for (; start < limit; ++ start) { var text = lumps[start].text; if (text) { // guard against "undefined" lumps from "justended" out += lumps[start].text; } } }
}, ['name', 'automux', 'idlescan', 'diseqcversion', 'qmon']);
}, ['name', 'automux', 'idlescan', 'diseqcversion', 'qmon', 'nitoid']);
tvheadend.dvb_adapter_general = function(adapterData, satConfStore) { adapterId = adapterData.identifier; var addMuxByLocationBtn = new Ext.Button({ style:'margin:5px', iconCls:'add', text: 'Add DVB Network by location...', handler:function() { tvheadend.addMuxByLocation(adapterData, satConfStore); } }); ...
})
}), { fieldLabel: 'NIT-o Network ID', name: 'nitoid', width: 50 },
tvheadend.dvb_adapter_general = function(adapterData, satConfStore) { adapterId = adapterData.identifier; var addMuxByLocationBtn = new Ext.Button({ style:'margin:5px', iconCls:'add', text: 'Add DVB Network by location...', handler:function() { tvheadend.addMuxByLocation(adapterData, satConfStore); } }); ...
}, ['name', 'automux', 'idlescan', 'diseqcversion', 'qmon', 'nitoid']);
}, ['name', 'automux', 'idlescan', 'diseqcversion', 'qmon', 'dumpmux', 'nitoid']);
tvheadend.dvb_adapter_general = function(adapterData, satConfStore) { adapterId = adapterData.identifier; var addMuxByLocationBtn = new Ext.Button({ style:'margin:5px', iconCls:'add', text: 'Add DVB Network by location...', handler:function() { tvheadend.addMuxByLocation(adapterData, satConfStore); } }); ...
labelWidth: 130,
labelWidth: 160,
tvheadend.dvb_adapter_general = function(adapterData, satConfStore) { adapterId = adapterData.identifier; var addMuxByLocationBtn = new Ext.Button({ style:'margin:5px', iconCls:'add', text: 'Add DVB Network by location...', handler:function() { tvheadend.addMuxByLocation(adapterData, satConfStore); } }); ...
if(m.updateEntry != null) { r = tvheadend.dvrStore.getById(m.id) if(typeof r === 'undefined') { tvheadend.dvrStore.reload(); return; } console.log(r); r.data.status = m.status; r.data.schedstate = m.schedstate; console.log(r); tvheadend.dvrStore.afterEdit(r); tvheadend.dvrStore.fireEvent('updated', tvheadend.dvrSto...
tvheadend.dvr = function() { tvheadend.dvrStore = new Ext.data.JsonStore({ root: 'entries', totalProperty: 'totalCount', fields: [ {name: 'id'}, {name: 'channel'}, {name: 'title'}, {name: 'episode'}, {name: 'pri'}, {name: 'description'}, {name: 'chicon'}, {name: 'start', type: ...
'weekdays', 'pri', 'approx_time'
'weekdays', 'pri', 'approx_time', 'config_name'
tvheadend.dvr = function() { tvheadend.dvrStore = new Ext.data.JsonStore({ root: 'entries', totalProperty: 'totalCount', fields: [ {name: 'id'}, {name: 'channel'}, {name: 'title'}, {name: 'episode'}, {name: 'pri'}, {name: 'description'}, {name: 'chicon'}, {name: 'start', type: ...
case 'sched':
case 'scheduled':
tvheadend.dvrDetails = function(entry) { var content = ''; var but; if(entry.chicon != null && entry.chicon.length > 0) content += '<img class="x-epg-chicon" src="' + entry.chicon + '">'; content += '<div class="x-epg-title">' + entry.title + '</div>'; content += '<div class="x-epg-desc">' + entry.descri...
case 'rec':
case 'recording': case 'recordingError':
tvheadend.dvrDetails = function(entry) { var content = ''; var but; if(entry.chicon != null && entry.chicon.length > 0) content += '<img class="x-epg-chicon" src="' + entry.chicon + '">'; content += '<div class="x-epg-title">' + entry.title + '</div>'; content += '<div class="x-epg-desc">' + entry.descri...
bodyStyle: 'margin: 5px',
tvheadend.dvrDetails = function(entry) { var content = ''; var but; if(entry.chicon != null && entry.chicon.length > 0) content += '<img class="x-epg-chicon" src="' + entry.chicon + '">'; content += '<div class="x-epg-title">' + entry.title + '</div>'; content += '<div class="x-epg-desc">' + entry.descri...
plugins: [actions],
tvheadend.dvrschedule = function() { function renderDate(value){ var dt = new Date(value); return dt.format('l H:i'); } function renderDuration(value){ value = value / 60; /* Nevermind the seconds */ if(value >= 60) { var min = parseInt(value % 60); var hours = parseInt(value / 60); ...
return dt.format('l H:i');
return dt.format('D j M H:i');
tvheadend.dvrschedule = function() { var actions = new Ext.ux.grid.RowActions({ header:'', dataIndex: 'actions', width: 45, actions: [ { iconIndex:'schedstate' } ] }); function renderDate(value){ var dt = new Date(value); return dt.format('l H:i'); } function renderDuration(value){ value =...
}
}, new Ext.form.ComboBox({ store: tvheadend.configNames, triggerAction: 'all', mode: 'local', fieldLabel: 'DVR Configuration', valueField: 'identifier', displayField: 'name', name: 'config_name', emptyText: '(default)', value: '', editable: false })
tvheadend.dvrschedule = function() { var actions = new Ext.ux.grid.RowActions({ header:'', dataIndex: 'actions', width: 45, actions: [ { iconIndex:'schedstate' } ] }); function renderDate(value){ var dt = new Date(value); return dt.format('D j M H:i'); } function renderDuration(value){ val...