[otrs-cvs] ImportExport/Kernel/Output/HTML/Standard AdminImportExport.dtl, 1.29, 1.30

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/ImportExport/Kernel/Output/HTML/Standard
In directory lancelot:/tmp/cvs-serv8459/Kernel/Output/HTML/Standard

Modified Files:
	AdminImportExport.dtl 
Log Message:
Fixed bug #7778 - ImportExport doesn't check for existence of mapping definition.

Author: ub

Index: AdminImportExport.dtl
===================================================================
RCS file: /home/cvs/ImportExport/Kernel/Output/HTML/Standard/AdminImportExport.dtl,v
retrieving revision 1.29
retrieving revision 1.30
diff -2 -u -d -r1.29 -r1.30
--- AdminImportExport.dtl	30 Nov 2012 13:43:55 -0000	1.29
+++ AdminImportExport.dtl	8 Feb 2013 12:46:14 -0000	1.30
@@ -1,5 +1,5 @@
 # --
 # AdminImportExport.dtl - provides HTML form for AdminImportExport
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -387,4 +387,32 @@
                 </form>
             </div>
+
+<!-- dtl:js_on_document_complete -->
+<script type="text/javascript">//<![CDATA[
+
+    // find the next button
+    var $NextButton = $("button.Primary[name='SubmitNext']").first();
+
+    // get the first column dropdown
+    var $FirstColumn = $('#Object\\:\\:0\\:\\:Key');
+
+    // handle changes to the first column selector
+    $FirstColumn.bind('change', function (Event) {
+
+    // check if there is at least one column with a value
+    if ( $FirstColumn.val() ) {
+        // we remove the disabled attribute
+        $NextButton.removeAttr("disabled");
+    }
+    else {
+        // we add the disabled attribute
+        $NextButton.attr("disabled", "disabled");
+    }
+
+}).trigger('change');
+
+//]]></script>
+<!-- dtl:js_on_document_complete -->
+
 <!-- dtl:block:TemplateEdit4 -->
 
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.