/* GMLeftBoxes.js <?php
# --------------------------------------------------------------
# GMLeftBoxes.js 2011-01-24 gambio
# Gambio GmbH
# http://www.gambio.de
# Copyright (c) 2011 Gambio GmbH
# Released under the GNU General Public License (Version 2)
# [http://www.gnu.org/licenses/gpl-2.0.html]
# --------------------------------------------------------------
?>*/
function GMLeftBoxes()
{
var current_box_id = '';
$(document).ready(function()
{
if(fb)console.log('GMLeftBoxes document ready');
$('.leftmenu_collapse').click(function(e)
{
if(fb)console.log('leftmenu_collapse click');
var box_key = $(this).next('.leftmenu_box').attr('id');
if($(this).hasClass('leftmenu_collapse_closed')) {
gmLeftBoxes.open_leftbox(box_key);
gmLeftBoxes.save_box_status(box_key, 1);
} else {
gmLeftBoxes.close_leftbox(box_key);
gmLeftBoxes.save_box_status(box_key, 0);
}
});
});
this.init = function()
{
$.ajax({
url: '../gm_ajax.php?module=admin_leftboxes&act=get_closed_boxes',
dataType: 'json',
cache: false,
success: function(cresult)
{
if(fb)console.log('keys:' + cresult.box_keys.length);
var curkey = '';
for(var i=0; i<cresult.box_keys.length; i++) {
curkey = cresult.box_keys[i];
if(fb)console.log('box_key closed:' + curkey);
gmLeftBoxes.close_leftbox(curkey);
}
}
});
}
this.open_leftbox = function(box_key) {
var collapse_container = $('#'+box_key).prev('.leftmenu_collapse');
$(collapse_container).removeClass('leftmenu_collapse_closed');
$(collapse_container).addClass('leftmenu_collapse_opened');
$('#'+box_key).show();
}
this.close_leftbox = function(box_key) {
var collapse_container = $('#'+box_key).prev('.leftmenu_collapse');
$(collapse_container).removeClass('leftmenu_collapse_opened');
$(collapse_container).addClass('leftmenu_collapse_closed');
$('#'+box_key).hide();
}
this.save_box_status = function(box_key, box_status) {
$.ajax({url: '../gm_ajax.php?module=admin_leftboxes&act=save_box_status&box_key='+box_key+'&box_status='+box_status});
}
}| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| ClearCache.js | 2013-11-12 20:53 | 1.43 KB | 76129f60960:kunden | -xw-x----- | |
| GMFavMaster.js | 2013-11-12 20:53 | 5.4 KB | 76129f60960:kunden | -xw-x----- | |
| GMLangEdit.js | 2013-11-12 20:53 | 3.36 KB | 76129f60960:kunden | -xw-x----- | |
| GMLeftBoxes.js | 2013-11-12 20:53 | 2.24 KB | 76129f60960:kunden | -xw-x----- | |
| LoadPayPalAdminNotification.js | 2013-11-12 20:53 | 1.44 KB | 76129f60960:kunden | -xw-x----- | |
| LoadUrl.js | 2013-11-12 20:53 | 1.47 KB | 76129f60960:kunden | -xw-x----- | |
| PayPalApiCheck.js | 2013-11-12 20:53 | 1.21 KB | 76129f60960:kunden | -xw-x----- | |
| ShowLog.js | 2013-11-12 20:53 | 3.69 KB | 76129f60960:kunden | -xw-x----- | |
| gm_bookmarks.js | 2013-11-12 20:53 | 1.87 KB | 76129f60960:kunden | -xw-x----- | |
| gm_counter.js | 2013-11-12 20:53 | 4.15 KB | 76129f60960:kunden | -xw-x----- | |
| gm_ebay.js | 2013-11-12 20:53 | 742 B | 76129f60960:kunden | -xw-x----- | |
| gm_gprint.js.php | 2013-11-12 20:53 | 2.2 KB | 76129f60960:kunden | -xw-x----- | |
| gm_invoicing.js | 2013-11-12 20:53 | 1.2 KB | 76129f60960:kunden | -xw-x----- | |
| gm_logo.js | 2013-11-12 20:53 | 2.14 KB | 76129f60960:kunden | -xw-x----- | |
| gm_modules.js | 2013-11-12 20:53 | 1.17 KB | 76129f60960:kunden | -xw-x----- | |
| gm_orders.js | 2013-11-12 20:53 | 4.41 KB | 76129f60960:kunden | -xw-x----- | |
| gm_pdf.js | 2013-11-12 20:53 | 5.17 KB | 76129f60960:kunden | -xw-x----- | |
| gm_sitemap.js | 2013-11-12 20:53 | 1.54 KB | 76129f60960:kunden | -xw-x----- | |
| gm_style_edit.js | 2013-11-12 20:53 | 2.46 KB | 76129f60960:kunden | -xw-x----- | |
| google_categories_administration.js | 2013-11-12 20:53 | 8.04 KB | 76129f60960:kunden | -xw-x----- | |
| image_mapper.js | 2013-11-12 20:53 | 47.22 KB | 76129f60960:kunden | -xw-x----- | |
| lettr_de.js | 2013-11-12 20:53 | 2.43 KB | 76129f60960:kunden | -xw-x----- | |
| lightbox_google_admin_categories.js | 2013-11-12 20:53 | 13.2 KB | 76129f60960:kunden | -xw-x----- | |
| lightbox_plugin.js | 2013-11-12 20:53 | 5.91 KB | 76129f60960:kunden | -xw-x----- | |