forked from openlp/openlp
fixes
This commit is contained in:
parent
274c4ee87a
commit
5fcb41bc9d
@ -39,7 +39,7 @@ window.OpenLP = {
|
|||||||
}
|
}
|
||||||
return $(targ);
|
return $(targ);
|
||||||
},
|
},
|
||||||
searchPlugins: function (event) {
|
getSearchablePlugins: function (event) {
|
||||||
$.getJSON(
|
$.getJSON(
|
||||||
"/api/plugin/search",
|
"/api/plugin/search",
|
||||||
function (data, status) {
|
function (data, status) {
|
||||||
@ -259,7 +259,7 @@ $("#alert-submit").live("click", OpenLP.showAlert);
|
|||||||
// Search
|
// Search
|
||||||
$("#search-submit").live("click", OpenLP.search);
|
$("#search-submit").live("click", OpenLP.search);
|
||||||
// Poll the server twice a second to get any updates.
|
// Poll the server twice a second to get any updates.
|
||||||
OpenLP.searchPlugins();
|
OpenLP.getSearchablePlugins();
|
||||||
$.ajaxSetup({ cache: false });
|
$.ajaxSetup({ cache: false });
|
||||||
setInterval("OpenLP.pollServer();", 500);
|
setInterval("OpenLP.pollServer();", 500);
|
||||||
OpenLP.pollServer();
|
OpenLP.pollServer();
|
||||||
|
@ -251,7 +251,7 @@ class HttpConnection(object):
|
|||||||
(r'^/api/service/(.*)$', self.service),
|
(r'^/api/service/(.*)$', self.service),
|
||||||
(r'^/api/display/(hide|show)$', self.display),
|
(r'^/api/display/(hide|show)$', self.display),
|
||||||
(r'^/api/alert$', self.alert),
|
(r'^/api/alert$', self.alert),
|
||||||
(r'^/api/plugin/(search)$', self.plugin),
|
(r'^/api/plugin/(search)$', self.pluginInfo),
|
||||||
(r'^/api/(.*)/search$', self.search),
|
(r'^/api/(.*)/search$', self.search),
|
||||||
(r'^/api/(.*)/live$', self.go_live)
|
(r'^/api/(.*)/live$', self.go_live)
|
||||||
]
|
]
|
||||||
@ -446,9 +446,9 @@ class HttpConnection(object):
|
|||||||
return HttpResponse(json.dumps({u'results': {u'success': True}}),
|
return HttpResponse(json.dumps({u'results': {u'success': True}}),
|
||||||
{u'Content-Type': u'application/json'})
|
{u'Content-Type': u'application/json'})
|
||||||
|
|
||||||
def plugin(self, action):
|
def pluginInfo(self, action):
|
||||||
"""
|
"""
|
||||||
Return plugin related actions
|
Return plugin related information, based on the action
|
||||||
|
|
||||||
``action`` - The action to perform
|
``action`` - The action to perform
|
||||||
if 'search' return a list of plugin names which support search
|
if 'search' return a list of plugin names which support search
|
||||||
|
Loading…
Reference in New Issue
Block a user