Sha256: 5e631e0611da8e4f7d8d8e2a3db0bd608edf771ca943448bb6aef01ac38a0886
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
pageflow.EditorView = Backbone.View.extend({ events: { 'click a': function(event) { // prevent default for all links if (!$(event.currentTarget).attr('target') && !$(event.currentTarget).attr('download') && !$(event.currentTarget).attr('href')) { return false; } } }, initialize: function() { $(window).on('beforeunload', function(event) { if (pageflow.entry.get('uploading_files_count') > 0) { return I18n.t('pageflow.editor.views.editor_views.files_pending_warning'); } }); }, render: function() { this.$el.layout({ minSize: 300, togglerTip_closed: I18n.t('pageflow.editor.views.editor_views.show_editor'), togglerTip_open: I18n.t('pageflow.editor.views.editor_views.hide_editor'), resizerTip: I18n.t('pageflow.editor.views.editor_views.resize_editor'), enableCursorHotkey: false, fxName: 'none', onresize: function() { pageflow.app.trigger('resize'); } }); new pageflow.UploaderView().render(); this.$el.append(new pageflow.LockedView({ model: pageflow.editLock }).render().el); this.$el.append(new pageflow.HelpView().render().el); } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pageflow-0.10.0 | app/assets/javascripts/pageflow/editor/views/editor_view.js |