*/
// Initialize all navigations
-$().ready(function() {
+$().ready(function () {
// Fade default content in
window.setTimeout("requestAjaxContent('install', 'install_content', '$content[install_page]', true)", 250);
$('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();
});
});
- //-----------------------------------------
- // 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
// 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
- });
});