small fix in select2.js
This commit is contained in:
1 parent
95e308e046
commit
c6868bf2e0
3 files changed
+12
-11
No files matched your search
@@ -109,7 +109,7 @@ var orbitDesktop = function(dom){
|
||||
this.themesettings = "";
|
||||
this.theme = "4f8d3f493b67fcd05f086359";
|
||||
this.transitionTime = 500;
|
||||
this.currenthtml = "desktop.html";
|
||||
this.currenthtml = "home";
|
||||
this.currentface = "home";
|
||||
this.desktopData = {};
|
||||
this.tp = "";
|
||||
@@ -632,7 +632,7 @@ var orbitDesktop = function(dom){
|
||||
}
|
||||
|
||||
this.initializeDesktop = function(target,url,cache){ //this is for initializing main desktops that are sections and tiles
|
||||
if(!target)target = "desktop";
|
||||
if(!target)target = "home";
|
||||
var bindHandlers = function(){ // this function will bind all the handlers in the desktop
|
||||
// var groupWrapperWidth = 0;
|
||||
// $("div#desktop .group").each(function(){groupWrapperWidth+=$(this).outerWidth(true);});
|
||||
@@ -1146,9 +1146,9 @@ var orbitDesktop = function(dom){
|
||||
});
|
||||
|
||||
$.post("/desktop/save_desktop_settings",{"save":"appnewsection","appid":ui.draggable.attr("id"),"newsectionid":$(this).data("content"),"desktopid":o.desktopId});
|
||||
if(o.sectionId == $(this).data("content") || o.sectionId == elementParent.attr("id")){
|
||||
// if(o.sectionId == $(this).data("content") || o.sectionId == elementParent.attr("id")){
|
||||
o.desktopData["home"]="";
|
||||
}
|
||||
// }
|
||||
}
|
||||
$(this).find('span.tile').addClass('op06',400);
|
||||
},
|
||||
@@ -1605,6 +1605,7 @@ var orbitDesktop = function(dom){
|
||||
})
|
||||
};
|
||||
this.initializeWidgets = function(){ // this function will initialize all the widgets in the desktop
|
||||
|
||||
var elements = $("#group_wrapper li.widget");
|
||||
$.each(elements,function(){
|
||||
var widget = $(this);
|
||||
@@ -1729,6 +1730,12 @@ var orbitDesktop = function(dom){
|
||||
});
|
||||
});
|
||||
}
|
||||
this.use_select2 = function(){
|
||||
$('select:not(.select2-offscreen)').select2({
|
||||
minimumResultsForSearch: -1
|
||||
// minimumInputLength: -1
|
||||
});
|
||||
}
|
||||
o.initialize();
|
||||
}
|
||||
|
||||
|
||||
@@ -206,12 +206,6 @@ var orbitDesktopAPI = function(){
|
||||
}
|
||||
}
|
||||
};
|
||||
this.use_select2 = function(){
|
||||
$('select:not(.select2-offscreen)').select2({
|
||||
minimumResultsForSearch: -1
|
||||
// minimumInputLength: -1
|
||||
});
|
||||
}
|
||||
};
|
||||
orbitDesktopAPI.prototype.notifyImgPath = "temp";
|
||||
orbitDesktopAPI.prototype.wallpaperPath = "temp";
|
||||
Reference in new issue
Block a user