Beispiel #1
0
    $(document).ready(function() {
      reLayout();

      var language = tsSettings.getInterfaceLangauge();
      // "de-DE"
      var langURLParam = getParameterByName('locale');
      if (langURLParam.length > 1) {
        language = langURLParam;
      }
      switchInterfaceLanguage(language);
      initKeyBindings();
      tsIOApi.checkAccessFileURLAllowed ? tsIOApi.checkAccessFileURLAllowed() : true;
      // Show welcome dialog of first start
      if (tsSettings.isFirstRun()) {
        tsCoreUI.showWelcomeDialog();
      }
      // Show welcome dialog by no locations
      if (tsSettings.Settings.tagspacesList.length < 1) {
        tsCoreUI.startGettingStartedTour();
      }
      if (isNode || isChrome || isElectron || isWeb) {
        // Handle command line argument in node-webkit
        tsIOApi.handleStartParameters(); // Handle minimizing to the tray in node-webkit
      }
      console.log('Docoument ready finished. Layout initialized');
      checkForNewVersion();
    });
Beispiel #2
0
        $(document).ready(function() {
            initLayout();
            switchInterfaceLanguage(tsSettings.getInterfaceLangauge()); // "de-DE"
            initKeyBindings();
            $( "#loading" ).hide();

            // Show welcome dialog of first start
            if(tsSettings.isFirstRun()) {
                tsCoreUI.showWelcomeDialog();
            }

            // Show welcome dialog by no locations
            if(tsSettings.Settings.tagspacesList.length < 1 ) {
                $( "#createNewLocation" ).tooltip( "show" );
                $( "#locationName" ).prop('disabled', true);
                $( "#selectLocation" ).prop('disabled', true);     
                tsCoreUI.showWelcomeDialog();
            }

            // Handle command line argument in node-webkit
            if(isNode) {
                tsIOApi.handleStartParameters();
            }

            console.log("Layout initialized");
        });
Beispiel #3
0
 $(document).ready(function() {
   initLayout();
   var language = tsSettings.getInterfaceLangauge();
   // "de-DE"
   var langURLParam = getParameterByName('locale');
   if (langURLParam.length > 1) {
     language = langURLParam;
   }
   switchInterfaceLanguage(language);
   initKeyBindings();
   tsIOApi.checkAccessFileURLAllowed();
   // Show welcome dialog of first start
   if (tsSettings.isFirstRun()) {
     tsCoreUI.showWelcomeDialog();
   }
   // Show welcome dialog by no locations
   if (tsSettings.Settings.tagspacesList.length < 1) {
     $('#createNewLocation').tooltip('show');
     $('#locationName').prop('disabled', true);
     $('#selectLocation').prop('disabled', true);
     tsCoreUI.showWelcomeDialog();
   }
   if (isNode || isChrome) {
     // Handle command line argument in node-webkit
     tsIOApi.handleStartParameters(); // Handle minimizing to the tray in node-webkit
     //tsIOApi.handleTray();
   }
   console.log('Docoument ready finished. Layout initialized');
   //$( "#loading" ).hide(); moved to perspective manager
   checkForNewVersion();
 });