/* --------------------------------------------------------------
StyleEdit v2.0
Gambio GmbH
http://www.gambio.de
Copyright (c) 2010 Gambio GmbH
--------------------------------------------------------------
*/
function GMStyleMonitor()
{
/*
* @var String
*/
var v_style_monitor_layer = '#style_monitor_layer';
/*
* @var object
*/
var coo_this = this;
/*
* Constructor
* @return void
*/
this.init = function(p_event)
{
/* load toolbox */
var t_style_monitor_layer = jQuery.ajax(
{
data: 'module=se_monitor¤t_template=' + style_edit_config_CURRENT_TEMPLATE + '&token='+style_edit_sectoken,
url: 'StyleEdit/style_edit_request.php',
type: "POST",
async: false
}
).responseText;
$(v_style_monitor_layer).remove();
$('body').append(t_style_monitor_layer);
this.hide_monitor();
$('#style_monitor_tabs').tabs();
$(v_style_monitor_layer).draggable(
{
handle: '#style_monitor_layer',
cursor: 'move',
containment: 'body'
}
);
$('.se_monitor_multi_save').click(
function()
{
coo_this.save_actual_style('', '#se_monitor_multi_input');
}
);
$('.se_monitor_single_save').click(
function()
{
var t_selector = $('.se_monitor_single_save').attr('title');
coo_this.save_actual_style(t_selector, '#se_monitor_single_input');
//$(t_selector).unbind('click').unbind('mouseover').unbind('mouseout');
}
);
$('.se_monitor_delete').click(
function()
{
var t_selector = $('.se_monitor_delete').attr('title');
coo_this.delete_actual_style(t_selector);
}
);
$('#se_monitor_close').click(
function()
{
coo_this.hide_monitor();
}
);
}
/*
* function to delete the actual style
* @param String p_selector
* @return void
*/
this.delete_actual_style = function(p_selector)
{
var t_selector = jQuery.ajax(
{
data: 'module=se_monitor_delete¤t_template=' + style_edit_config_CURRENT_TEMPLATE + '&token='+style_edit_sectoken + "&se_selector=" + p_selector,
url: 'StyleEdit/style_edit_request.php',
type: "POST",
async: false
}
).responseText;
$(p_selector).unbind('click').unbind('mouseover').unbind('mouseout');
return;
}
/*
* function to show the StyleMonitor
* @param String p_selector
* @return void
*/
this.save_actual_style = function(p_selector, p_textarea_id)
{
var t_styles = $(p_textarea_id).val();
var t_selector = jQuery.ajax(
{
data: 'module=se_monitor_save¤t_template=' + style_edit_config_CURRENT_TEMPLATE + '&token='+style_edit_sectoken + '&se_styles=' + t_styles + "&se_selector=" + p_selector,
url: 'StyleEdit/style_edit_request.php',
type: "POST",
async: false
}
).responseText;
gmStyleEditHandler.load_styles(t_selector);
return;
}
/*
* function to show the StyleMonitor
* @return void
*/
this.load_actual_style = function(p_selector, p_styles)
{
var t_styles = p_selector + "\n{" + p_styles + "\n}";
$('.se_monitor_single_save, .se_monitor_delete').attr('title', p_selector);
$('#se_monitor_single_input').val(t_styles);
return;
}
/*
* function to show the StyleMonitor
* @return void
*/
this.show_monitor = function()
{
$(v_style_monitor_layer).show();
$('#style_editor_tabs').tabs({ selected:0 });
return;
}
/*
* function to show the StyleMonitor
* @return void
*/
this.hide_monitor = function()
{
$(v_style_monitor_layer).hide();
return;
}
}| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| jquery/ | 2013-11-12 21:10 | 252.22 KB | 76129f60960:kunden | dxwrx-rx-r | |
| GMBoxesMaster.js | 2013-11-12 21:10 | 7.16 KB | 76129f60960:kunden | -xw-x----- | |
| GMBoxesPageMenu.js | 2013-11-12 21:10 | 3.45 KB | 76129f60960:kunden | -xw-x----- | |
| GMColorizer.js | 2013-11-12 21:10 | 13.71 KB | 76129f60960:kunden | -xw-x----- | |
| GMStyleEditControl.js | 2013-11-12 21:10 | 13.56 KB | 76129f60960:kunden | -xw-x----- | |
| GMStyleEditHandler.js | 2013-11-12 21:10 | 45.01 KB | 76129f60960:kunden | -xw-x----- | |
| GMStyleEditSelector.js | 2013-11-12 21:10 | 5.71 KB | 76129f60960:kunden | -xw-x----- | |
| GMStyleEditToolBox.js | 2013-11-12 21:10 | 10.59 KB | 76129f60960:kunden | -xw-x----- | |
| GMStyleMonitor.js | 2013-11-12 21:10 | 3.59 KB | 76129f60960:kunden | -xw-x----- | |
| GMUploader.js | 2013-11-12 21:10 | 12.38 KB | 76129f60960:kunden | -xw-x----- | |
| style_edit.js.php | 2013-11-12 21:10 | 1.44 KB | 76129f60960:kunden | -xw-x----- | |