main menu list_accounts jquery.autocomplete
jquery.multiselect2side frame_header/header
ui-lightness/jquery-ui
- jquery-ui.custom
+ jquery-ui.custom jqModal
);
$layout->use_javascript("$_.js") for (qw(
$form->{follow_up_trans_info} = $form->{donumber} .'('. $follow_up_vc .')';
- $::request->layout->use_stylesheet('presenter/record/record_list.css');
-
$form->header();
# Fix für Bug 1082 Erwartet wird: 'abteilungsNAME--abteilungsID'
# und Erweiterung für Bug 1760:
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
$form->{jsscript} = 1;
- $::request->layout->use_stylesheet('presenter/record/record_list.css');
$form->header();
print $form->parse_html_template("ir/form_header", \%TMPL_VAR);
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}];
$form->{jsscript} = 1;
- $::request->layout->use_stylesheet('presenter/record/record_list.css');
$form->header();
print $form->parse_html_template("is/form_header", \%TMPL_VAR);
$form->{javascript} .= qq|<script type="text/javascript" src="js/show_history.js"></script>|;
$form->{javascript} .= qq|<script type="text/javascript" src="js/show_vc_details.js"></script>|;
- $::request->layout->use_stylesheet('presenter/record/record_list.css');
-
$form->header;
$TMPL_VAR{HIDDENS} = [ map { name => $_, value => $form->{$_} },
--- /dev/null
+/* the overlayed element */
+.jqModal_overlay {
+ position: fixed;
+ top: 50%;
+ margin-top: -250px;
+ height: 500px;
+
+ left: 50%;
+ margin-left: -400px;
+ width: 800px;
+
+ background-color: #fff;
+ border: 1px solid #333;
+
+ /* CSS3 styling for latest browsers */
+ box-shadow: 0 0 90px 5px #000;
+ -moz-box-shadow: 0 0 90px 5px #000;
+ -webkit-box-shadow: 0 0 90px #000;
+
+ padding: 10px;
+}
+
+.jqModal_overlay .overlay_content {
+ width: 790px;
+ height: 490px;
+ overflow: auto;
+}
+
+.jqModal_overlay .close {
+ background-image: url(../../image/dialog-close.png);
+ position: absolute;
+ right: -16px;
+ top: -16px;
+ cursor: pointer;
+ height: 32px;
+ width: 32px;
+}
+++ /dev/null
-/* the overlayed element */
-.record_list_overlay {
- position: fixed;
- top: 50%;
- margin-top: -250px;
- height: 500px;
-
- left: 50%;
- margin-left: -400px;
- width: 800px;
-
- background-color: #fff;
- border: 1px solid #333;
-
- /* CSS3 styling for latest browsers */
- box-shadow: 0 0 90px 5px #000;
- -moz-box-shadow: 0 0 90px 5px #000;
- -webkit-box-shadow: 0 0 90px #000;
-
- padding: 10px;
-}
-
-.record_list_overlay .overlay_content {
- width: 790px;
- height: 490px;
- overflow: auto;
-}
-
-.record_list_overlay .close {
- background-image: url(../../../image/dialog-close.png);
- position: absolute;
- right: -16px;
- top: -16px;
- cursor: pointer;
- height: 32px;
- width: 32px;
-}
return false;
}
+function open_jqm_window(params) {
+ params = params || { };
+ var url = params.url;
+ var id = params.id ? params.id : 'jqm_popup_dialog';
+
+ if (params.data) {
+ var data = typeof params.data === "string" ? params.data : $.param(params.data);
+ url += (/\?/.exec(url) ? "&" : "?") + data;
+ }
+
+ $('#' + id).remove();
+ var div = $('<div id="' + id + '" class="jqmWindow jqModal_overlay ' + (params.class || '') + '"></div>').hide().appendTo('body');
+ var close = $('<div class="close"></div>').appendTo(div);
+ var content = $('<div class="overlay_content"></div>').appendTo(div);
+ div.jqm({ modal: true });
+ div.jqmShow();
+ $.ajax({ url: url, success: function(new_html) { $(content).html(new_html); } });
+ $(close).click(function() {
+ div.jqmClose();
+ });
+
+ return true;
+}
+
$(document).ready(function () {
// initialize all jQuery UI tab elements:
$(".tabwidget").each(function(idx, element) { $(element).tabs(); });
$.fn.jqmAddTrigger=function(e){return hs(this,e,'jqmShow');};
$.fn.jqmShow=function(t){return this.each(function(){t=t||window.event;$.jqm.open(this._jqm,t);});};
$.fn.jqmHide=function(t){return this.each(function(){t=t||window.event;$.jqm.close(this._jqm,t)});};
+$.fn.jqmClose=function(t){return this.each(function(){t=t||window.event;$.jqm.close(this._jqm,t);this.remove();});};
$.jqm = {
hash:{},
<script type="text/javascript">
<!--
-$(function() {
-
-});
-
function record_links_add() {
- var url = "controller.pl?action=RecordLinks/ajax_add_filter&object_model=[% JavaScript.escape(object_model) %]&object_id=[% JavaScript.escape(object_id) %]&";
- var id = 'record_links_add';
-
- $('#' + id).remove();
- var div = $('<div id="' + id + '" class="jqmWindow record_list_overlay"></div>').hide().appendTo('body');
- var close = $('<div class="close"></div>').appendTo(div);
- var content = $('<div class="overlay_content"></div>').appendTo(div);
- div.jqm({ modal: true });
- div.jqmShow();
- $.ajax({ url: url, success: function(new_html) { $(content).html(new_html); } });
- $(close).click(function() {
- div.jqmHide();
- div.remove();
- });
+ open_jqm_window({ url: 'controller.pl',
+ data: { action: 'RecordLinks/ajax_add_filter',
+ object_model: '[% JavaScript.escape(object_model) %]',
+ object_id: '[% JavaScript.escape(object_id) %]'
+ },
+ id: 'record_links_add' });
+ return true;
}
function record_links_delete() {
[% L.button_tag('filter_record_links()', LxERP.t8("Search")) %]
[% L.button_tag('add_selected_record_links()', LxERP.t8("Add links"), id='add_selected_record_links_button', disabled=1) %]
<a href="#" onclick="record_links_reset_form();">[%- LxERP.t8("Reset") %]</a>
- <a href="#" onclick="record_links_cancel();">[% LxERP.t8("Cancel") %]</a>
+ <a href="#" onclick="$('#record_links_add').jqmClose();">[% LxERP.t8("Cancel") %]</a>
</p>
<hr>
$('.jqmWindow form select').prop('selectedIndex', 0);
}
-function record_links_cancel() {
- $('.jqmWindow').jqmHide();
- $('.jqmWindow').remove();
-}
-
function filter_record_links() {
var url="controller.pl?action=RecordLinks/ajax_add_list&" + $(".jqmWindow form").serialize();
$.ajax({