File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -6897,7 +6897,7 @@ define("../cardkit/app", [
6897
6897
if ( e . state ) {
6898
6898
if ( e . state . next === '_modal_' ) {
6899
6899
// 11. forward from normal card, show modal card. alert(11)
6900
- if ( loading ) {
6900
+ if ( modalCard . isOpened || loading || ! ck . viewport ) {
6901
6901
history . back ( ) ;
6902
6902
} else {
6903
6903
modalCard . set ( e . state . opt ) . open ( ) ;
Original file line number Diff line number Diff line change @@ -321,9 +321,12 @@ <h2>Overlay</h2>
321
321
modal . hideLoading ( ) ;
322
322
var json = net . parseJSON ( maybe_json ) || { e : 0 } ;
323
323
if ( ! json . e ) {
324
- // modal.ok().then(function(){
325
- ck . openURL ( 'picker.html' ) ;
326
- // });
324
+ //ck.openURL('picker.html');
325
+ location . href = 'picker.html' ;
326
+ //location.reload();
327
+ //modal.ok().then(function(){
328
+ //location.reload();
329
+ //});
327
330
} else {
328
331
ck . growl ( {
329
332
expires : 3000 ,
Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ define([
383
383
if ( e . state ) {
384
384
if ( e . state . next === '_modal_' ) {
385
385
// 11. forward from normal card, show modal card. alert(11)
386
- if ( loading ) {
386
+ if ( modalCard . isOpened || loading || ! ck . viewport ) {
387
387
history . back ( ) ;
388
388
} else {
389
389
modalCard . set ( e . state . opt ) . open ( ) ;
You can’t perform that action at this time.
0 commit comments