Fossil SCM
added diff demo to ajax page.
Commit
42f569238e53dd2a7fc2303e7ef9e7a0d0119c1b
Parent
56ecc0c67731347…
1 file changed
+5
+5
| --- ajax/index.html | ||
| +++ ajax/index.html | ||
| @@ -242,10 +242,15 @@ | ||
| 242 | 242 | onclick='TheApp.cgi.sendCommand("/json/tag/add",{name:"json-add-tag-test",checkin:"json",value:"tag test",propagate:false,raw:false})' /> |
| 243 | 243 | <input type='button' value='tag/cancel' |
| 244 | 244 | onclick='TheApp.cgi.sendCommand("/json/tag/cancel",{name:"json-add-tag-test",checkin:"json",raw:false})' /> |
| 245 | 245 | <input type='button' value='tag/find' |
| 246 | 246 | onclick='TheApp.cgi.sendCommand("/json/tag/find",{name:"json",type:"*",raw:false,limit:5})' /> |
| 247 | +<input type='button' value='diff' | |
| 248 | +onclick='TheApp.cgi.sendCommand("/json/diff",{v1:"b0e9b45baed6f885",v2:"5f225e261d836287",context:2})' /> | |
| 249 | +<input type='button' value='diff/A/B' | |
| 250 | +onclick='TheApp.cgi.sendCommand("/json/diff/b0e9b45baed6f885/5f225e261d836287?context=2")' /> | |
| 251 | + | |
| 247 | 252 | <!-- not yet ready... |
| 248 | 253 | <input type='button' value='artifact/XYZ' onclick='TheApp.cgi.sendCommand("/json/artifact?uuid=json")' /> |
| 249 | 254 | --> |
| 250 | 255 | |
| 251 | 256 | <!-- |
| 252 | 257 |
| --- ajax/index.html | |
| +++ ajax/index.html | |
| @@ -242,10 +242,15 @@ | |
| 242 | onclick='TheApp.cgi.sendCommand("/json/tag/add",{name:"json-add-tag-test",checkin:"json",value:"tag test",propagate:false,raw:false})' /> |
| 243 | <input type='button' value='tag/cancel' |
| 244 | onclick='TheApp.cgi.sendCommand("/json/tag/cancel",{name:"json-add-tag-test",checkin:"json",raw:false})' /> |
| 245 | <input type='button' value='tag/find' |
| 246 | onclick='TheApp.cgi.sendCommand("/json/tag/find",{name:"json",type:"*",raw:false,limit:5})' /> |
| 247 | <!-- not yet ready... |
| 248 | <input type='button' value='artifact/XYZ' onclick='TheApp.cgi.sendCommand("/json/artifact?uuid=json")' /> |
| 249 | --> |
| 250 | |
| 251 | <!-- |
| 252 |
| --- ajax/index.html | |
| +++ ajax/index.html | |
| @@ -242,10 +242,15 @@ | |
| 242 | onclick='TheApp.cgi.sendCommand("/json/tag/add",{name:"json-add-tag-test",checkin:"json",value:"tag test",propagate:false,raw:false})' /> |
| 243 | <input type='button' value='tag/cancel' |
| 244 | onclick='TheApp.cgi.sendCommand("/json/tag/cancel",{name:"json-add-tag-test",checkin:"json",raw:false})' /> |
| 245 | <input type='button' value='tag/find' |
| 246 | onclick='TheApp.cgi.sendCommand("/json/tag/find",{name:"json",type:"*",raw:false,limit:5})' /> |
| 247 | <input type='button' value='diff' |
| 248 | onclick='TheApp.cgi.sendCommand("/json/diff",{v1:"b0e9b45baed6f885",v2:"5f225e261d836287",context:2})' /> |
| 249 | <input type='button' value='diff/A/B' |
| 250 | onclick='TheApp.cgi.sendCommand("/json/diff/b0e9b45baed6f885/5f225e261d836287?context=2")' /> |
| 251 | |
| 252 | <!-- not yet ready... |
| 253 | <input type='button' value='artifact/XYZ' onclick='TheApp.cgi.sendCommand("/json/artifact?uuid=json")' /> |
| 254 | --> |
| 255 | |
| 256 | <!-- |
| 257 |