table exit blocking

This commit is contained in:
2014-09-06 10:39:06 +02:00
parent 6082eb0715
commit 5660522c3e

View File

@@ -27,6 +27,9 @@
<script type="text/javascript"> <script type="text/javascript">
databap.pageInit = function() databap.pageInit = function()
{ {
//Blocking exit
self.tmp('started', false);
//Scroll bar //Scroll bar
self.initScrollBar('#main', '#table', '#table_container'); self.initScrollBar('#main', '#table', '#table_container');
@@ -43,6 +46,8 @@ databap.onResize = function()
//self.maximizeElem($('#keywords'), false, $('#table')); //self.maximizeElem($('#keywords'), false, $('#table'));
}; };
databap.onQuit = function(){ return (self.tmp('started') === false); };
function Table(oTable) function Table(oTable)
{ {
@@ -62,6 +67,7 @@ function Table(oTable)
$('#title').addDefaultValue('Nom de la table').blur(tableself.checkTitle); $('#title').addDefaultValue('Nom de la table').blur(tableself.checkTitle);
$('#description').addDefaultValue('Description'); $('#description').addDefaultValue('Description');
$('#keywords').blur(function(){self.tmp('started', ($(this).val()!=''));});
$('#validation').addButton('dummy', '', function(){}, this.ACTION_BTN_ID, '', this.ACTION_BTN_ID); $('#validation').addButton('dummy', '', function(){}, this.ACTION_BTN_ID, '', this.ACTION_BTN_ID);
this.$Button = databap.tmp(this.ACTION_BTN_ID); this.$Button = databap.tmp(this.ACTION_BTN_ID);