juney 2 anni fa
parent
commit
1eb71d2ff7
1 ha cambiato i file con 39 aggiunte e 41 eliminazioni
  1. 39 41
      src/main/webapp/mobile/js/config.js

+ 39 - 41
src/main/webapp/mobile/js/config.js

@@ -3,8 +3,6 @@ var today = new Date();
3 3
 const js_version = itp_fn_date_format(today);
4 4
 const mobile_list_size = 10;
5 5
 
6
-const CMD_PAGE_MOVE_PARAM = 'PAGE_MOVE_PARAM';
7
-
8 6
 requirejs.config({
9 7
 	baseUrl: ITP_CONTEXTPATH,
10 8
 	waitSeconds: 0,
@@ -745,45 +743,45 @@ let CommonObj = {
745 743
 			return result;
746 744
 		};
747 745
 
748
-		$.fn.extend({
749
-			treed: function(o) {
750
-				var openedClass = 'glyphicon-minus text-primary';
751
-				var closedClass = 'glyphicon-plus text-primary';
752
-
753
-				if (typeof o != 'undefined') {
754
-					if (typeof o.openedClass != 'undefined') {
755
-						openedClass = o.openedClass;
756
-					}
757
-					if (typeof o.closedClass != 'undefined') {
758
-						closedClass = o.closedClass;
759
-					}
760
-				};
761
-
762
-				var tree = $(this);
763
-				tree.addClass('tree');
764
-				tree.find('li').has('ul').each(function() {
765
-					var branch = $(this);
766
-					branch.find('.list-group-item').first().prepend('<i class="indicator glyphicon ' + closedClass + '"></i>');
767
-					branch.addClass('branch');
768
-					branch.on('click', function(e) {
769
-						if (this == e.target) {
770
-							var icon = $(this).find('.list-group-item').first().children('i:first');
771
-							icon.toggleClass(openedClass + ' ' + closedClass);
772
-							$(this).children('ul').children().toggle();
773
-						}
774
-					});
775
-					branch.children('ul').children().toggle();
776
-					//branch.children('ul').children().show();
777
-				});
778
-
779
-				tree.find('.branch .indicator').each(function() {
780
-					$(this).on('click', function() {
781
-						$(this).closest('li').click();
782
-						return false;
783
-					});
784
-				});
785
-			}
786
-		});
746
+		// $.fn.extend({
747
+		// 	treed: function(o) {
748
+		// 		var openedClass = 'glyphicon-minus text-primary';
749
+		// 		var closedClass = 'glyphicon-plus text-primary';
750
+		//
751
+		// 		if (typeof o != 'undefined') {
752
+		// 			if (typeof o.openedClass != 'undefined') {
753
+		// 				openedClass = o.openedClass;
754
+		// 			}
755
+		// 			if (typeof o.closedClass != 'undefined') {
756
+		// 				closedClass = o.closedClass;
757
+		// 			}
758
+		// 		};
759
+		//
760
+		// 		var tree = $(this);
761
+		// 		tree.addClass('tree');
762
+		// 		tree.find('li').has('ul').each(function() {
763
+		// 			var branch = $(this);
764
+		// 			branch.find('.list-group-item').first().prepend('<i class="indicator glyphicon ' + closedClass + '"></i>');
765
+		// 			branch.addClass('branch');
766
+		// 			branch.on('click', function(e) {
767
+		// 				if (this == e.target) {
768
+		// 					var icon = $(this).find('.list-group-item').first().children('i:first');
769
+		// 					icon.toggleClass(openedClass + ' ' + closedClass);
770
+		// 					$(this).children('ul').children().toggle();
771
+		// 				}
772
+		// 			});
773
+		// 			branch.children('ul').children().toggle();
774
+		// 			//branch.children('ul').children().show();
775
+		// 		});
776
+		//
777
+		// 		tree.find('.branch .indicator').each(function() {
778
+		// 			$(this).on('click', function() {
779
+		// 				$(this).closest('li').click();
780
+		// 				return false;
781
+		// 			});
782
+		// 		});
783
+		// 	}
784
+		// });
787 785
 
788 786
 	},
789 787
 	moreView: function(id, isScroll, fn) {