jack 8 years ago
parent
commit
66636faeaf
1 changed files with 7 additions and 11 deletions
  1. 7 11
      app/js/articleShow.js

+ 7 - 11
app/js/articleShow.js

494
		var datatype = this.getAttribute("data-type");
494
		var datatype = this.getAttribute("data-type");
495
		var ownerid = this.getAttribute("owner-id");
495
		var ownerid = this.getAttribute("owner-id");
496
		if(datatype == 1) {
496
		if(datatype == 1) {
497
			mui.openWindow({
498
			url: '../html/professorArticle.html',
499
			id: 'html/professorArticle.html',
500
			show: {
501
				autoShow: false,
502
				aniShow: "slide-in-right",
503
			},
504
			extras: {
497
			plus.nativeUI.showWaiting();
498
			var webviewShow=plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
505
				articleId: id,
499
				articleId: id,
506
				ownerid: ownerid,
500
				ownerid: ownerid,
507
			},
508
			createNew:true
509
		});
501
			});
502
			webviewShow.addEventListener("loaded", function() {
503
				setTimeout(function(){plus.webview.currentWebview().close()},2000)
504
				
505
			}, false);
510
		} else if(datatype == 2) {
506
		} else if(datatype == 2) {
511
			plus.nativeUI.showWaiting();
507
			plus.nativeUI.showWaiting();
512
			plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {
508
			plus.webview.create("../html/professorArticle.html", '../html/professorArticle.html', {}, {