Browse Source

增加js绑定方法

笔下光年 6 years ago
parent
commit
72f0f16288
1 changed files with 9 additions and 1 deletions
  1. 9 1
      js/main.min.js

+ 9 - 1
js/main.min.js

@@ -66,5 +66,13 @@ jQuery( function() {
 	$("#check-all").change(function () {
 		$("input[type='checkbox']").prop('checked', $(this).prop("checked"));
 	});
-
+	
+	// iframe打开tab
+ 	$('.js-create-tab').on('click', function(){
+ 	    parent.$(parent.document).data('multitabs').create({
+ 	        iframe : true,
+ 	        title : $(this).data('title') ? $(this).data('title') : '标题',
+ 	        url : $(this).data('url') ? $(this).data('url') : 'lyear-main.html'
+ 	    }, true);
+ 	});
 });