removing duplicate code from js file
This commit is contained in:
parent
a458a50e97
commit
20521dc8b0
|
@ -441,7 +441,9 @@ var orbitDesktop = function(dom){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// call other functions here
|
||||||
o.tinyscrollbar_ext(settings,tsettings);
|
o.tinyscrollbar_ext(settings,tsettings);
|
||||||
|
o.simple_drop_down();
|
||||||
o.autocomplete();
|
o.autocomplete();
|
||||||
o.use_select2();
|
o.use_select2();
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ orbitDesktop.prototype.initializeConferencePapers = function(target,url,cache){
|
||||||
this.initializeConferencePapers.list = function(){ // to open list part in conference papers page
|
this.initializeConferencePapers.list = function(){ // to open list part in conference papers page
|
||||||
var conferenceData;
|
var conferenceData;
|
||||||
var bindHandlers = function(){ // to bind handlers for list page
|
var bindHandlers = function(){ // to bind handlers for list page
|
||||||
o.simple_drop_down();
|
|
||||||
}
|
}
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ orbitDesktop.prototype.initializeConferencePapers = function(target,url,cache){
|
||||||
}
|
}
|
||||||
|
|
||||||
var bindHandlers = function(){
|
var bindHandlers = function(){
|
||||||
o.simple_drop_down();
|
|
||||||
}
|
}
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
uploadFiles();
|
uploadFiles();
|
||||||
|
@ -100,7 +100,7 @@ orbitDesktop.prototype.initializeConferencePapers = function(target,url,cache){
|
||||||
|
|
||||||
this.initializeConferencePapers.conference = function(){ // to open add pages in conference papers page
|
this.initializeConferencePapers.conference = function(){ // to open add pages in conference papers page
|
||||||
var bindHandlers = function(){ // to bind handlers for add page
|
var bindHandlers = function(){ // to bind handlers for add page
|
||||||
o.simple_drop_down();
|
|
||||||
}
|
}
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ orbitDesktop.prototype.initializeConferencePapers = function(target,url,cache){
|
||||||
}
|
}
|
||||||
this.initializeConferencePapers.coauthor = function(){ // to open add pages in coauthor page
|
this.initializeConferencePapers.coauthor = function(){ // to open add pages in coauthor page
|
||||||
var bindHandlers = function(){ // to bind handlers for add page
|
var bindHandlers = function(){ // to bind handlers for add page
|
||||||
o.simple_drop_down();
|
|
||||||
}
|
}
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
|
||||||
this.initializeJournalPapers.list = function(){ // to open list part in journal papers page
|
this.initializeJournalPapers.list = function(){ // to open list part in journal papers page
|
||||||
var journalData;
|
var journalData;
|
||||||
var bindHandlers = function(){ // to bind handlers for list page
|
var bindHandlers = function(){ // to bind handlers for list page
|
||||||
o.simple_drop_down();
|
|
||||||
}
|
}
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
|
||||||
|
|
||||||
// console.log("hi");
|
// console.log("hi");
|
||||||
var bindHandlers = function(){
|
var bindHandlers = function(){
|
||||||
o.simple_drop_down();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
|
@ -103,7 +103,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
|
||||||
|
|
||||||
this.initializeJournalPapers.journal = function(){ // to open add pages in journal papers page
|
this.initializeJournalPapers.journal = function(){ // to open add pages in journal papers page
|
||||||
var bindHandlers = function(){ // to bind handlers for add page
|
var bindHandlers = function(){ // to bind handlers for add page
|
||||||
o.simple_drop_down();
|
|
||||||
}
|
}
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
|
||||||
}
|
}
|
||||||
this.initializeJournalPapers.coauthor = function(){ // to open add pages in coauthor page
|
this.initializeJournalPapers.coauthor = function(){ // to open add pages in coauthor page
|
||||||
var bindHandlers = function(){ // to bind handlers for add page
|
var bindHandlers = function(){ // to bind handlers for add page
|
||||||
o.simple_drop_down();
|
|
||||||
}
|
}
|
||||||
bindHandlers();
|
bindHandlers();
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue