55</ head >
66< body >
77 < div data-role ="page " class ="page type-interior pluginConfigurationPage smtpConfigurationPage " data-require ="emby-select,emby-checkbox,emby-input,emby-button ">
8-
8+
99
1010 < div id ="itemTemplate " class ="paperList " style ="display:none; ">
1111 < div class ="listItem ">
1212 < div class ="listItemBody two-line ">
1313 < div >
1414 < div class ="inputContainer ">
15- < input is ="emby-input " type ="text " class ="txtUrl "/>
15+ < input is ="emby-input " type ="text " class ="txtUrl " />
1616 < div class ="fieldDescription ">
1717 Url
1818 </ div >
@@ -41,29 +41,29 @@ <h3>Events</h3>
4141 < span > Item Added</ span >
4242 </ label >
4343
44-
44+
4545 </ div >
4646 < div >
4747 < h3 > Media Types</ h3 >
48- < label class ="checkboxContainer " style ="float:left; width:auto; padding-right:10px ">
49- < input is ="emby-checkbox " type ="checkbox " class ="chkMovies " />
50- < span > Movies</ span >
51- </ label >
52- < label class ="checkboxContainer " style ="float:left; width:auto; padding-right:10px ">
53- < input is ="emby-checkbox " type ="checkbox " class ="chkEpisodes " />
54- < span > TV Shows</ span >
55- </ label >
56- < label class ="checkboxContainer " style ="float:left; width:auto; padding-right:10px ">
57- < input is ="emby-checkbox " type ="checkbox " class ="chkSongs " />
58- < span > Music</ span >
59- </ label >
48+ < label class ="checkboxContainer " style ="float:left; width:auto; padding-right:10px ">
49+ < input is ="emby-checkbox " type ="checkbox " class ="chkMovies " />
50+ < span > Movies</ span >
51+ </ label >
52+ < label class ="checkboxContainer " style ="float:left; width:auto; padding-right:10px ">
53+ < input is ="emby-checkbox " type ="checkbox " class ="chkEpisodes " />
54+ < span > TV Shows</ span >
55+ </ label >
56+ < label class ="checkboxContainer " style ="float:left; width:auto; padding-right:10px ">
57+ < input is ="emby-checkbox " type ="checkbox " class ="chkSongs " />
58+ < span > Music</ span >
59+ </ label >
6060 </ div >
61-
62-
6361
64-
65- </ div >
66- < button title ="Delete " class ="btnDeleteDevice paper-icon-button-light removeHook " type ="button " is ="paper-icon-button-light "> < i class ="md-icon "> delete</ i > </ button >
62+
63+
64+
65+ </ div >
66+ < button title ="Delete " class ="btnDeleteDevice paper-icon-button-light removeHook " type ="button " is ="paper-icon-button-light "> < i class ="md-icon "> delete</ i > </ button >
6767
6868 </ div >
6969 </ div >
@@ -116,36 +116,34 @@ <h3>Media Types</h3>
116116 <span>Songs</span>
117117 </label>
118118 </div>
119-
119+
120120
121121 </div>
122122 <button title="Delete" class="btnDeleteDevice paper-icon-button-light removeHook" type="button" is="paper-icon-button-light"><i class="md-icon">delete</i></button>
123123
124124 </div>
125125 </div> -->
126-
127-
128- <!--
126+ <!--
129127 <div style="height:0; overflow: hidden;">
130128 <input type="text" name="fakeusernameremembered" tabindex="-1" />
131129 <input type="password" name="fakepasswordremembered" tabindex="-1" />
132130 </div>
133131 -->
134-
135-
136- < h1 style ="display:inline-block;vertical-align:middle; "> Webhooks</ h1 >
137- < button title ="Add " class ="raised btnAddDevice submit mini emby-button " id ="testNotification "
138- style ="margin-left:1em; " type ="button " is ="emby-button ">
139- < i class ="md-icon "> add</ i >
140- < span > Add</ span >
141- </ button >
132+
133+
134+ < h1 style ="display:inline-block;vertical-align:middle; "> Webhooks</ h1 >
135+ < button title ="Add " class ="raised btnAddDevice submit mini emby-button " id ="testNotification "
136+ style ="margin-left:1em; " type ="button " is ="emby-button ">
137+ < i class ="md-icon "> add</ i >
138+ < span > Add</ span >
139+ </ button >
142140 < div id ="Hooks ">
143141
144142
145143 </ div >
146-
147-
148- < br />
144+
145+
146+ < br />
149147 < div >
150148 < button is ="emby-button " type ="submit " class ="raised button-submit block "> < span > Save</ span > </ button >
151149 </ div >
@@ -170,7 +168,7 @@ <h1 style="display:inline-block;vertical-align:middle;">Webhooks</h1>
170168 } ) ;
171169 }
172170
173-
171+
174172
175173 $ ( '.smtpConfigurationPage' ) . on ( 'pageinit' , function ( event ) {
176174
@@ -191,7 +189,7 @@ <h1 style="display:inline-block;vertical-align:middle;">Webhooks</h1>
191189
192190 Dashboard . hideLoadingMsg ( ) ;
193191
194-
192+
195193 } ) ;
196194
197195 $ ( '.smtpConfigurationForm' , page ) . on ( 'submit' , function ( e ) {
@@ -202,7 +200,7 @@ <h1 style="display:inline-block;vertical-align:middle;">Webhooks</h1>
202200 var config = { Hooks : [ ] } ;
203201 $ ( '#Hooks .listItem' , form ) . each ( function ( i ) {
204202 var a = $ ( this ) . find ( '.txtUrl' ) . first ( ) . val ( ) ;
205-
203+
206204
207205 config . Hooks . push (
208206 {
@@ -216,7 +214,7 @@ <h1 style="display:inline-block;vertical-align:middle;">Webhooks</h1>
216214 withEpisodes : $ ( this ) . find ( '.chkEpisodes' ) . first ( ) . checked ( ) ,
217215 withSongs : $ ( this ) . find ( '.chkSongs' ) . first ( ) . checked ( ) ,
218216 onItemAdded : $ ( this ) . find ( '.chkOnItemAdded' ) . first ( ) . checked ( )
219-
217+
220218 }
221219 ) ;
222220 } ) ;
@@ -227,8 +225,8 @@ <h1 style="display:inline-block;vertical-align:middle;">Webhooks</h1>
227225 Dashboard . processPluginConfigurationUpdateResult ) ;
228226 return false ;
229227 } ) ;
230-
231-
228+
229+
232230
233231 } ) . on ( 'pageshow' , function ( event ) {
234232
@@ -239,7 +237,7 @@ <h1 style="display:inline-block;vertical-align:middle;">Webhooks</h1>
239237 ApiClient . getPluginConfiguration ( pluginId ) . then ( function ( config ) {
240238 for ( var i in config . Hooks ) {
241239 var a = $ ( '#itemTemplate' ) . clone ( ) ;
242-
240+
243241 $ ( a ) . show ( ) ;
244242 $ ( '#Hooks' , page ) . append (
245243 a
@@ -259,7 +257,7 @@ <h1 style="display:inline-block;vertical-align:middle;">Webhooks</h1>
259257 $ ( a ) . find ( '.chkEpisodes' ) . first ( ) . checked ( config . Hooks [ i ] . withEpisodes || false ) ;
260258 $ ( a ) . find ( '.chkSongs' ) . first ( ) . checked ( config . Hooks [ i ] . withSongs || false ) ;
261259 $ ( a ) . find ( '.chkOnItemAdded' ) . first ( ) . checked ( config . Hooks [ i ] . onItemAdded || false ) ;
262-
260+
263261
264262
265263 }
@@ -273,4 +271,4 @@ <h1 style="display:inline-block;vertical-align:middle;">Webhooks</h1>
273271 </ script >
274272 </ div >
275273</ body >
276- </ html >
274+ </ html >
0 commit comments