1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 15:19:06 +00:00

only show extra msg in pro edition when unlink a device

This commit is contained in:
lian
2016-05-27 14:19:53 +08:00
parent 4a44c60beb
commit 400bcde5ce
2 changed files with 3 additions and 0 deletions

View File

@@ -1493,8 +1493,10 @@
<script type="text/template" id="confirm-dialog-with-extra-option-tmpl"> <script type="text/template" id="confirm-dialog-with-extra-option-tmpl">
<h3><%= title %></h3> <h3><%= title %></h3>
<p><%= content %></p> <p><%= content %></p>
<% if (is_pro) { %>
<label class="checkbox-label"> <label class="checkbox-label">
<input type="checkbox" name="confirm-extra-option" id="confirm-extra-option" class="vam" /> <input type="checkbox" name="confirm-extra-option" id="confirm-extra-option" class="vam" />
<span class="checkbox-option vam"><%= extraOption %></span> <span class="checkbox-option vam"><%= extraOption %></span>
</label> </label>
<% } %>
</script> </script>

View File

@@ -297,6 +297,7 @@ define([
var $yesBtn = $('#confirm-yes'); var $yesBtn = $('#confirm-yes');
var html = this.confirm_with_extra_option_template({ var html = this.confirm_with_extra_option_template({
'is_pro': app.pageOptions.is_pro,
'title': title, 'title': title,
'content': content, 'content': content,
'extraOption': extraOption 'extraOption': extraOption