1 |
12865
|
katerina.i
|
dojo.require("dojo.rpc.*");
|
2 |
|
|
dojo.hostenv.writeIncludes();
|
3 |
|
|
|
4 |
|
|
//var smdUrl="AnnouncementsManager.action";
|
5 |
|
|
var smdUrl="RssManager.action";
|
6 |
|
|
|
7 |
|
|
var currentPage = 0;
|
8 |
|
|
var service = new dojo.rpc.JsonService( smdUrl );
|
9 |
|
|
|
10 |
|
|
var announcementIds = [];
|
11 |
|
|
var numOfIds = 0;
|
12 |
|
|
|
13 |
|
|
function addRss(){
|
14 |
|
|
var call = function( path ) {
|
15 |
|
|
if( path == "" ){
|
16 |
|
|
alert( "This service is not working right now, please try again later" );
|
17 |
|
|
return;
|
18 |
|
|
}
|
19 |
|
|
open( path,"RSSFeed");
|
20 |
|
|
};
|
21 |
|
|
|
22 |
|
|
var cql = document.getElementById("cqlText").value;
|
23 |
|
|
var userId = document.getElementById("userId" ).value;
|
24 |
|
|
|
25 |
|
|
var defered = service.addNewRssFeed( cql, userId );
|
26 |
|
|
defered.addCallback(call);
|
27 |
|
|
|
28 |
|
|
}
|