small fix for journal_pages desktop

This commit is contained in:
Harry Bomrah committed 2012-11-21 17:11:18 +08:00
1 parent b571373c8f
commit c94940214c
5 files changed
+11 -13

No files matched your search

@@ -207,15 +207,13 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
}
bindHandlers();
}
this.initializeJournalPapers.coAuthorformCallback = function(ruse){
this.initializeJournalPapers.formCallback = function(data){
this.initializeJournalPapers.coAuthorformCallback = function(data){
if(data.success){
o.notify(data.msg,"success");
o.sub_menu_item($("div[content-type=menu] a").eq(0));
}else{
o.notify(data.msg,"alert");
}
}
}
this.initializeJournalPapers.coauthor = function(){ // to open add pages in journal papers page
var bindHandlers = function(){ // to bind handlers for add page
+1 -1
View File
@@ -133,7 +133,7 @@ var orbitDesktop = function(dom){
}
},'*[content-type=menu] a');
$("body").on("submit","form[type=ajax_form]",function(){
$("body").on("submit","form[form-type=ajax_form]",function(){
var callback_method = $(this).attr("callback-method");
var options = {
success:function(responseText, statusText, xhr, $form){