wp/wp-admin/js/image-edit.js
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
   891 		var h = $('#imgedit-history-' + postid).val(),
   891 		var h = $('#imgedit-history-' + postid).val(),
   892 			history = ( h !== '' ) ? JSON.parse(h) : [],
   892 			history = ( h !== '' ) ? JSON.parse(h) : [],
   893 			pop = this.intval( $('#imgedit-undone-' + postid).val() );
   893 			pop = this.intval( $('#imgedit-undone-' + postid).val() );
   894 
   894 
   895 		if ( pop < history.length ) {
   895 		if ( pop < history.length ) {
   896 			if ( confirm( $('#imgedit-leaving-' + postid).html() ) ) {
   896 			if ( confirm( $('#imgedit-leaving-' + postid).text() ) ) {
   897 				return false;
   897 				return false;
   898 			}
   898 			}
   899 			return true;
   899 			return true;
   900 		}
   900 		}
   901 		return false;
   901 		return false;