Xataface HTML Reports Module 0.2
HTML Reports Module for Xataface
js/xataface/modules/htmlreports/reports_form.js
Go to the documentation of this file.
00001 //require <jquery.packed.js>
00002 //require <ckeditor.js>
00003 (function(){
00004         var $ = jQuery;
00005         
00006         var tb = $.merge([],CKEDITOR.config.toolbar_Basic);
00007         tb.push(['insertmacro']);
00008         CKEDITOR.config.toolbar_YBasic = tb;
00009         
00010         var templateField = $('textarea[data-xf-field="template_html"]');
00011         var tablenameField = $('[data-xf-field="tablename"]');
00012         
00013         tablenameField.each(function(){
00014                 updateTableName();
00015                 $(this).change(function(){
00016                         updateTableName();
00017                 });
00018         });
00019         
00020         
00021         function updateTableName(){
00022                 //alert("updateing table name "+tablenameField.val());
00023                 templateField.attr('data-xf-htmlreports-tablename', tablenameField.val());
00024         }
00025         
00026         
00027         var cssField = $('[data-xf-field="template_css"]');
00028         
00029         cssField.each(function(){
00030                 updateCss();
00031                 $(this).change(function(){
00032                         updateCss();
00033                 });
00034         });
00035         
00036         
00037         function updateCss(){
00038                 //alert("updateing table name "+tablenameField.val());
00039                 templateField.attr('data-xf-htmlreports-css', cssField.val());
00040         }
00041         
00042         
00043         
00044         
00045         
00046         
00047         
00048         
00049 })();
 All Data Structures Files Functions Variables Enumerations