Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy in share modal #454

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
made further revisions
  • Loading branch information
jwass91 committed Jul 25, 2017
commit d45bc425de2d8f4ab1c63e6b8bb71e10fd8d07d7
16 changes: 4 additions & 12 deletions create.html
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
<li><a><input onclick="autoRunClicked()" type="checkbox" id="checkbox" v-model="autoRunChecked"></span> Auto Run</a></li>
<li role="separator" class="divider"></li>
<li><a @click="cleanAll()" :style="{display: canClean ? 'block' : 'none'}"><span class="glyphicon glyphicon-align-left"></span> Clean Code <span><kbd>{{shortcut}}</kbd>+<kbd>B</kbd></span></a></li>
<li><a @click="cleanAll()" class='disabled' :style="{display: canClean ? 'none' : 'block'}" data-toggle="popover" data-trigger="hover" data-content="You can't clean when there's an error." data-placement="top"><span class="glyphicon glyphicon-align-left"></span> Clean Code</a></li>
<li><a @click="cleanAll()" class='disabled' :style="{display: canClean ? 'none' : 'block'}" data-toggle="popover" data-trigger="hover" data-content="You can't clean when there's an error." data-placement="top"><span class="glyphicon glyphicon-align-left"></span> Clean Code <span><kbd>{{shortcut}}</kbd>+<kbd>B</kbd></span></a></li>
<li role="separator" class="divider"></li>
<li><a @click="share()"><span class="glyphicon glyphicon-share-alt"></span> Share</a></li>
</ul>
Expand Down Expand Up @@ -472,8 +472,7 @@ <h4 class="modal-body text-danger" :style="{display: !getID() ? 'block' : 'none'
'btn-default': this.status == "NEW"
} },
canClean: function(){
// whether or not the code can be "cleaned" or if its already pristine
return !this.error && this.code != js_beautify(this.code, {space_after_anon_function: true, indent_size: 2, indent_with_tabs: false })
return !this.error
},
},
methods: {
Expand Down Expand Up @@ -524,10 +523,6 @@ <h4 class="modal-body text-danger" :style="{display: !getID() ? 'block' : 'none'
find: function(){
editor.execCommand("find")
},
//COPY ISN'T WORKING
copy: function(){
editor.getSelection()
},
validate: function($event) {
var newName = $event.target.value

Expand Down Expand Up @@ -565,7 +560,8 @@ <h4 class="modal-body text-danger" :style="{display: !getID() ? 'block' : 'none'
}
}
})


//Initalizes the popover for the comment code button in the tools menu
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
});
Expand Down Expand Up @@ -821,10 +817,6 @@ <h4 class="modal-body text-danger" :style="{display: !getID() ? 'block' : 'none'
save();
}
}

function commentCode(){

}

function WoofJSLint(){
if (app.error) { return }
Expand Down