brief added to desktop for all plugins
This commit is contained in:
1 parent
04ff345b94
commit
1d0ea6718f
75 files changed
+1055
-25
No files matched your search
@@ -19,3 +19,6 @@
|
||||
//= require select2
|
||||
//= require jquery.isotope.min.js
|
||||
//= require orbit_js_1.0.1-front-end
|
||||
//= require ckeditor/init
|
||||
//= require ckeditor/jquery-ckeditor
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
//for forms
|
||||
//form-type = "ajax_form" will turn form to ajax submit
|
||||
//notification = string will display after the form is succesfully submitted
|
||||
//response-type = "json"|"script"|"xml|html" default is json
|
||||
|
||||
//for layout tinyscrollbar
|
||||
//content-layout="datalist|column|simple" datalist is for data list from database.. column is usually for forms and some other pages.. simple is without any columns, the page will be displayed as it is.. base width will be considered the default width for tinyscrollbar
|
||||
@@ -247,16 +248,12 @@ var orbitDesktop = function(dom){
|
||||
|
||||
$("body").on("submit","form[form-type=ajax_form]",function(){
|
||||
var callback_method = $(this).attr("callback-method"),
|
||||
dt = null,
|
||||
dt = ($(this).attr("response-type") == null ? "json" : $(this).attr("response-type")),
|
||||
notification = $(this).attr("notification");
|
||||
dt = $(this).attr("response-type");
|
||||
if(dt == null){
|
||||
dt = "json";
|
||||
}
|
||||
var options = {
|
||||
dataType : dt,
|
||||
resetForm : true,
|
||||
success:function(responseText, statusText, xhr, $form){
|
||||
resetForm : false,
|
||||
success: function(responseText, statusText, xhr, $form){
|
||||
if(typeof callback_method != "undefined"){
|
||||
if(callback_method != ""){
|
||||
window.o[o.data_method][callback_method](responseText,statusText,xhr,$form);
|
||||
@@ -265,7 +262,7 @@ var orbitDesktop = function(dom){
|
||||
if(typeof notification == "string")
|
||||
o.notify(notification,"success");
|
||||
},
|
||||
error:function(){
|
||||
error: function(){
|
||||
o.notify("Please try again later!","imp");
|
||||
}
|
||||
}
|
||||
@@ -451,7 +448,7 @@ var orbitDesktop = function(dom){
|
||||
|
||||
var ist = function(){
|
||||
$('#holder').css('height', $('#container').height() - 72);
|
||||
$('.tinycanvas').css('height', $('#panel_r').height() - 36);
|
||||
$('.tinycanvas').css('height', $('#holder').height() - 36);
|
||||
var dom = $("*[isotope=true]").isotope({
|
||||
layoutMode: 'fitColumns',
|
||||
onLayout: function($elems, instance){
|
||||
@@ -698,6 +695,15 @@ var orbitDesktop = function(dom){
|
||||
}
|
||||
})
|
||||
o.highlight_sub_menu_item(dom);
|
||||
} else {
|
||||
o.lastlink = dom.attr("href");
|
||||
$.ajax({
|
||||
url : dom.attr("href"),
|
||||
type : "get",
|
||||
success : function(data){
|
||||
o.layout_data(data);
|
||||
}
|
||||
})
|
||||
}
|
||||
if(dom.length == 0)
|
||||
o.layout_data(data);
|
||||
@@ -1868,6 +1874,13 @@ var orbitDesktop = function(dom){
|
||||
}
|
||||
}
|
||||
}
|
||||
this.enablelanguageSelect = function(){
|
||||
$(".language_select a").click(function(event) {
|
||||
$("*[data-language]").hide();
|
||||
$("*[data-language="+$(this).data("lang")+"]").show();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
this.minimizeBarManager = function(){
|
||||
var minimizedApps = [],
|
||||
minimizeBar = $("#minimizebar");
|
||||
|
||||
Reference in new issue
Block a user