]> git.mxchange.org Git - mailer.git/blobdiff - templates/de/html/js/js_install_ajax.tpl
Mailer project rwritten:
[mailer.git] / templates / de / html / js / js_install_ajax.tpl
index f1e7e39a16d33b5df3b7dbaea51e91df9bafd78f..f30a2614ada2fd317dc6bc770a09131acd9c83bb 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 // Initialize all navigations
-$().ready(function() {
+$().ready(function () {
        // Fade default content in
        window.setTimeout("requestAjaxContent('install', 'install_content', '$content[install_page]', true)", 250);
 
@@ -43,7 +43,7 @@ $().ready(function() {
        $('a').each(function (i) {
                $(this).on('click', {index:i}, function (event) {
                        // Is there a valid index?
-                       if (indexTranslation[event.data.index] != null) {
+                       if (indexTranslation[event.data.index] !== null) {
                                // Prevent default action
                                event.preventDefault();
 
@@ -53,18 +53,8 @@ $().ready(function() {
                });
        });
 
-       //-----------------------------------------
-       //             Close buttons
-       //-----------------------------------------
-       $('#install_error_close').click(function () {
-               // Close the window
-               closeErrorWindow('install');
-       });
-
-       $('#install_warning_close').click(function () {
-               // Close the window
-               closeWarningWindow('install');
-       });
+       // Register common things (close button, drap&drop)
+       registerCommons('install');
 
        //-----------------------------------------
        //           Footer navigation
@@ -96,19 +86,4 @@ $().ready(function() {
                // Save changes
                saveChanges('install');
        });
-
-       //-----------------------------------------
-       //              Drag'N'Drop
-       //-----------------------------------------
-       $('#install_progress').draggable({
-               opacity: 0.85
-       });
-
-       $('#install_warning').draggable({
-               opacity: 0.85
-       });
-
-       $('#install_error').draggable({
-               opacity: 0.85
-       });
 });