small fix in select2.js
This commit is contained in:
parent
95e308e046
commit
c6868bf2e0
|
@ -109,7 +109,7 @@ var orbitDesktop = function(dom){
|
||||||
this.themesettings = "";
|
this.themesettings = "";
|
||||||
this.theme = "4f8d3f493b67fcd05f086359";
|
this.theme = "4f8d3f493b67fcd05f086359";
|
||||||
this.transitionTime = 500;
|
this.transitionTime = 500;
|
||||||
this.currenthtml = "desktop.html";
|
this.currenthtml = "home";
|
||||||
this.currentface = "home";
|
this.currentface = "home";
|
||||||
this.desktopData = {};
|
this.desktopData = {};
|
||||||
this.tp = "";
|
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
|
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 bindHandlers = function(){ // this function will bind all the handlers in the desktop
|
||||||
// var groupWrapperWidth = 0;
|
// var groupWrapperWidth = 0;
|
||||||
// $("div#desktop .group").each(function(){groupWrapperWidth+=$(this).outerWidth(true);});
|
// $("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});
|
$.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"]="";
|
o.desktopData["home"]="";
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
$(this).find('span.tile').addClass('op06',400);
|
$(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
|
this.initializeWidgets = function(){ // this function will initialize all the widgets in the desktop
|
||||||
|
|
||||||
var elements = $("#group_wrapper li.widget");
|
var elements = $("#group_wrapper li.widget");
|
||||||
$.each(elements,function(){
|
$.each(elements,function(){
|
||||||
var widget = $(this);
|
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();
|
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.notifyImgPath = "temp";
|
||||||
orbitDesktopAPI.prototype.wallpaperPath = "temp";
|
orbitDesktopAPI.prototype.wallpaperPath = "temp";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div id="side">
|
<div id="side">
|
||||||
<div id="rwidget" class="wh2 thmc4">
|
<div id="rwidget" class="wh2 thmc4">
|
||||||
<ul class="docklist">
|
<ul class="docklist">
|
||||||
<li class="d_cate"><a callback-method='initializeDesktop' href="desktop/" class="widget_fn wh2 hh2" id='home' onclick="return false;"><span class="widget_icon"><img src="" alt="Home" id="home_icon" width="30" height="30"/></span></a>
|
<li class="d_cate"><a callback-method='initializeDesktop' href="desktop/desktop" class="widget_fn wh2 hh2" id='home' onclick="return false;"><span class="widget_icon"><img src="" alt="Home" id="home_icon" width="30" height="30"/></span></a>
|
||||||
<ul class="dock_child hh2 thmc4" style="width: 180px;">
|
<ul class="dock_child hh2 thmc4" style="width: 180px;">
|
||||||
<li class="dock_item"><a callback-method='initializeAppSearch' href="<%= desktop_app_manager_path %>" class="widget_fn wh2 hh2" id="d_app_manager" onclick="return false;"><span class="widget_icon"><img src="" alt="App Manager" id="app_manager_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item"><a callback-method='initializeAppSearch' href="<%= desktop_app_manager_path %>" class="widget_fn wh2 hh2" id="d_app_manager" onclick="return false;"><span class="widget_icon"><img src="" alt="App Manager" id="app_manager_icon" width="30" height="30"/></span></a></li>
|
||||||
<li class="dock_item"><a callback-method='initializeSectionsManager' href="<%= desktop_allsections_path %>" class="widget_fn wh2 hh2" id="d_sections" custom-load="sections" onclick="return false;"><span class="widget_icon"><img src="" alt="All Sections" id="sections_icon" width="30" height="30"/></span></a></li>
|
<li class="dock_item"><a callback-method='initializeSectionsManager' href="<%= desktop_allsections_path %>" class="widget_fn wh2 hh2" id="d_sections" custom-load="sections" onclick="return false;"><span class="widget_icon"><img src="" alt="All Sections" id="sections_icon" width="30" height="30"/></span></a></li>
|
||||||
|
|
Loading…
Reference in New Issue