File tree 1 file changed +0
-21
lines changed 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 3
3
import $ from 'jquery' ;
4
4
import _ from 'lodash' ;
5
5
import progress from './progress' ;
6
- import Dialog from './LegacyDialog' ;
7
6
import { getStore } from '../redux' ;
8
7
import { shareProject } from './headerShare' ;
9
8
import { convertBlocksXml } from '../craft/code-connection/utils' ;
@@ -406,26 +405,6 @@ header.showProjectHeader = function () {
406
405
e . stopPropagation ( ) ; // Clicks inside the popup shouldn't close it.
407
406
} ) ;
408
407
409
- $ ( '.project_delete' ) . click ( function ( e ) {
410
- e . preventDefault ( ) ; // Don't change the hash.
411
- var dialog = new Dialog ( { body : '<img class="modal-image" src="' + appOptions . skin . staticAvatar + '">' +
412
- '<div id="confirm-delete" class="modal-content">' +
413
- '<p class="dialog-title">' + dashboard . i18n . t ( 'project.delete_confirm_title' ) + '</p>' +
414
- '<p>' + dashboard . i18n . t ( 'project.delete_confirm_text' ) + '</p>' +
415
- '<button id="again-button">' + dashboard . i18n . t ( 'project.cancel' ) + '</button>' +
416
- '<button id="continue-button" style="float: right">' + dashboard . i18n . t ( 'project.delete' ) + '</button></div>'
417
- } ) ;
418
- dialog . show ( ) ;
419
- $ ( '#confirm-delete #continue-button' ) . click ( function ( ) {
420
- dashboard . project . delete ( function ( ) {
421
- location . href = dashboard . project . appToProjectUrl ( ) ;
422
- } ) ;
423
- } ) ;
424
- $ ( '#confirm-delete #again-button' ) . click ( function ( ) {
425
- dialog . hide ( ) ;
426
- } ) ;
427
- } ) ;
428
-
429
408
$ ( '.project_new' ) . click ( dashboard . project . createNew ) ;
430
409
431
410
$ ( document ) . on ( 'click' , '.project_list' , function ( ) {
You can’t perform that action at this time.
0 commit comments