@@ -34,7 +34,8 @@ var modalStyleguide = {
34
34
} ,
35
35
36
36
/**
37
- * toggle the modal window open and closed
37
+ * toggle the modal window open and closed based on clicking the pip
38
+ * @param {String } the patternPartial that identifies what needs to be toggled
38
39
*/
39
40
toggle : function ( patternPartial ) {
40
41
if ( ( modalStyleguide . active [ patternPartial ] === undefined ) || ! modalStyleguide . active [ patternPartial ] ) {
@@ -47,7 +48,9 @@ var modalStyleguide = {
47
48
} ,
48
49
49
50
/**
50
- * open the modal window
51
+ * open the modal window for a view-all entry
52
+ * @param {String } the patternPartial that identifies what needs to be opened
53
+ * @param {String } the content that should be inserted
51
54
*/
52
55
open : function ( patternPartial , content ) {
53
56
@@ -81,7 +84,8 @@ var modalStyleguide = {
81
84
} ,
82
85
83
86
/**
84
- * close the modal window
87
+ * close the modal window for a view-all entry
88
+ * @param {String } the patternPartial that identifies what needs to be closed
85
89
*/
86
90
close : function ( patternPartial ) {
87
91
@@ -94,6 +98,12 @@ var modalStyleguide = {
94
98
95
99
} ,
96
100
101
+ /**
102
+ * get the data that needs to be send to the viewer for rendering
103
+ * @param {Element } the identifier for the element that needs to be collected
104
+ * @param {Boolean } if the refresh is of a view-all view and the content should be sent back
105
+ * @param {Boolean } if the text in the dropdown should be switched
106
+ */
97
107
collectAndSend : function ( el , iframePassback , switchText ) {
98
108
var patternData = JSON . parse ( el . innerHTML ) ;
99
109
patternMarkupEl = document . querySelector ( '#' + patternData . patternPartial + ' > .sg-pattern-example' ) ;
@@ -103,6 +113,9 @@ var modalStyleguide = {
103
113
104
114
/**
105
115
* return the pattern info to the top level
116
+ * @param {Object } the content that will be sent to the viewer for rendering
117
+ * @param {Boolean } if the refresh is of a view-all view and the content should be sent back
118
+ * @param {Boolean } if the text in the dropdown should be switched
106
119
*/
107
120
patternQueryInfo : function ( patternData , iframePassback , switchText ) {
108
121
0 commit comments