Gut Loca calls.
parent
ca8d6e4281
commit
8e64f835d8
|
@ -56,9 +56,6 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
copy: function() {
|
copy: function() {
|
||||||
|
|
||||||
window.ll('tagEvent', 'Copied snipt');
|
|
||||||
|
|
||||||
$('textarea', this.$copyModal).remove();
|
$('textarea', this.$copyModal).remove();
|
||||||
|
|
||||||
window.ui_halted = true;
|
window.ui_halted = true;
|
||||||
|
@ -87,9 +84,6 @@
|
||||||
this.model.destroy();
|
this.model.destroy();
|
||||||
},
|
},
|
||||||
edit: function(adding) {
|
edit: function(adding) {
|
||||||
|
|
||||||
window.ll('tagEvent', 'Edited snipt');
|
|
||||||
|
|
||||||
window.editing = true;
|
window.editing = true;
|
||||||
window.ui_halted = true;
|
window.ui_halted = true;
|
||||||
|
|
||||||
|
@ -293,9 +287,6 @@
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
embed: function() {
|
embed: function() {
|
||||||
|
|
||||||
window.ll('tagEvent', 'Embedded snipt');
|
|
||||||
|
|
||||||
$('textarea', this.$embedModal).remove();
|
$('textarea', this.$embedModal).remove();
|
||||||
|
|
||||||
window.ui_halted = true;
|
window.ui_halted = true;
|
||||||
|
@ -355,7 +346,6 @@
|
||||||
success: function() {
|
success: function() {
|
||||||
that.$el.removeClass('favorited');
|
that.$el.removeClass('favorited');
|
||||||
that.$favorite.text('Favorite');
|
that.$favorite.text('Favorite');
|
||||||
window.ll('tagEvent', 'Unfavorited snipt');
|
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'ApiKey ' + window.user + ':' + window.api_key
|
'Authorization': 'ApiKey ' + window.user + ':' + window.api_key
|
||||||
|
@ -370,7 +360,6 @@
|
||||||
that.$el.addClass('favorited');
|
that.$el.addClass('favorited');
|
||||||
that.model.set({'favorite_id': resp.id}, {'silent': true});
|
that.model.set({'favorite_id': resp.id}, {'silent': true});
|
||||||
that.$favorite.text('Favorited');
|
that.$favorite.text('Favorited');
|
||||||
window.ll('tagEvent', 'Favorited snipt');
|
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': 'ApiKey ' + window.user + ':' + window.api_key
|
'Authorization': 'ApiKey ' + window.user + ':' + window.api_key
|
||||||
|
@ -738,10 +727,6 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addNewSnipt: function() {
|
addNewSnipt: function() {
|
||||||
|
|
||||||
window.ll('tagEvent', 'Added snipt');
|
|
||||||
window.ll('tagScreen', 'Add snipt view');
|
|
||||||
|
|
||||||
var $articleNewSnipt = $('article#new-snipt');
|
var $articleNewSnipt = $('article#new-snipt');
|
||||||
|
|
||||||
if ($articleNewSnipt.length === 0) {
|
if ($articleNewSnipt.length === 0) {
|
||||||
|
|
|
@ -20,11 +20,6 @@
|
||||||
$scope.$root.account = response.data;
|
$scope.$root.account = response.data;
|
||||||
$scope.$root.$watch('account.list_view', function(newView, oldView) {
|
$scope.$root.$watch('account.list_view', function(newView, oldView) {
|
||||||
if (oldView !== newView) {
|
if (oldView !== newView) {
|
||||||
if (newView === 'N') {
|
|
||||||
window.ll('tagEvent', 'Switched to normal view');
|
|
||||||
} else {
|
|
||||||
window.ll('tagEvent', 'Switched to compact view');
|
|
||||||
}
|
|
||||||
AccountStorage.saveAccount($scope.$root.account, ['list_view']).then(function(response) {
|
AccountStorage.saveAccount($scope.$root.account, ['list_view']).then(function(response) {
|
||||||
$scope.$root.account = response.data;
|
$scope.$root.account = response.data;
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,9 +26,3 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block analytics %}
|
|
||||||
{% if not debug %}
|
|
||||||
window.ll('tagScreen', 'Pro signup complete view');
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
|
@ -64,9 +64,3 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block analytics %}
|
|
||||||
{% if not debug %}
|
|
||||||
window.ll('tagScreen', 'Team beta signup view');
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
|
@ -70,9 +70,3 @@
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block analytics %}
|
|
||||||
{% if not debug %}
|
|
||||||
window.ll('tagScreen', 'Team members view');
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
|
@ -17,8 +17,4 @@
|
||||||
})();
|
})();
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% else %}
|
|
||||||
<script>
|
|
||||||
window.ll = function() {};
|
|
||||||
</script>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -60,9 +60,3 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block analytics %}
|
|
||||||
{% if not debug %}
|
|
||||||
window.ll('tagScreen', 'Login view');
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
|
@ -86,9 +86,3 @@
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block analytics %}
|
|
||||||
{% if not debug %}
|
|
||||||
window.ll('tagScreen', 'Signup view');
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
|
@ -133,14 +133,3 @@
|
||||||
}());
|
}());
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block analytics %}
|
|
||||||
{% if not debug %}
|
|
||||||
window.ll('tagScreen', 'Search view');
|
|
||||||
{% if query %}
|
|
||||||
window.ll('tagEvent', 'Searched', { query: "{{ query }}" });
|
|
||||||
{% else %}
|
|
||||||
window.ll('tagEvent', 'Visited search page');
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
Loading…
Reference in New Issue