Skip to content

Commit

Permalink
cleanup inline popup scripts into applicationJS
Browse files Browse the repository at this point in the history
  • Loading branch information
x6iae committed Sep 3, 2017
1 parent 1d482dc commit 537a4ca
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 89 deletions.
9 changes: 6 additions & 3 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 15,9 @@
//= require turbolinks
//= require_tree .

$('.ui.accordion')
.accordion()
;
$(document).ready(function() {
$('.ui.accordion').accordion();
$('.inline.icon').popup({inline: true});
$('.icon').popup({inline: true});
$(".ui.mini.rounded.image").popup({inline: true});
});
8 changes: 0 additions & 8 deletions app/views/blasts/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 41,3 @@
</div>
</div>
</div>

<script type="text/javascript" charset="utf-8" >
$('.inline.icon')
.popup({
inline: true
})
;
</script>
9 changes: 0 additions & 9 deletions app/views/blasts/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 11,3 @@
<%= link_to 'Back', blasts_path %>
</div>
</div>


<script type="text/javascript" charset="utf-8" >
$('.inline.icon')
.popup({
inline: true
})
;
</script>
8 changes: 0 additions & 8 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 62,3 @@ View and search the list of slack users

</div>
</div>

<script type="text/javascript" charset="utf-8" >
$('.icon')
.popup({
inline: true
})
;
</script>
10 changes: 0 additions & 10 deletions app/views/interactions/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 36,3 @@
</div>
</div>
</div>



<script type="text/javascript" charset="utf-8" >
$('.inline.icon')
.popup({
inline: true
})
;
</script>
12 changes: 0 additions & 12 deletions app/views/messages/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 18,3 @@
<%= link_to 'Back', messages_path %>
</div>
</div>


<script type="text/javascript" charset="utf-8" >
$('.inline.icon')
.popup({
inline: true
})
;
</script>



8 changes: 0 additions & 8 deletions app/views/messages/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 43,3 @@
</div>
</div>
</div>

<script type="text/javascript" charset="utf-8" >
$('.inline.icon')
.popup({
inline: true
})
;
</script>
10 changes: 0 additions & 10 deletions app/views/messages/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 11,3 @@
<%= link_to 'Back', messages_path %>
</div>
</div>


<script type="text/javascript" charset="utf-8" >
$('.inline.icon')
.popup({
inline: true
})
;
</script>

7 changes: 0 additions & 7 deletions app/views/metrics/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 70,3 @@
</div>

<p id="notice"><%= notice %></p>


<script type="text/javascript" charset="utf-8" async defer>
$(".ui.mini.rounded.image").popup({
inline: true
});
</script>
7 changes: 0 additions & 7 deletions app/views/users/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 48,3 @@
</div>

<p id="notice"><%= notice %></p>


<script type="text/javascript" charset="utf-8" async defer>
$(".ui.mini.rounded.image").popup({
inline: true
});
</script>
7 changes: 0 additions & 7 deletions app/views/users/index2.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 47,3 @@
</div>

<p id="notice"><%= notice %></p>


<script type="text/javascript" charset="utf-8" async defer>
$(".ui.mini.rounded.image").popup({
inline: true
});
</script>

0 comments on commit 537a4ca

Please sign in to comment.