Remove base.entry.js, declare all JS dependencies in explore using npm. Pin older select2 version to enable select2Sortable.

This commit is contained in:
Chris Williams
2016-02-24 13:30:42 -08:00
parent 71073d8f83
commit 3e834603fc
9 changed files with 33 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
var $ = window.$ || require('jquery');
var d3 = window.d3 || require('d3');
var $ = require('jquery'), jQuery = $;
var d3 = require('d3');
var color = function(){
// Color related utility functions go in this object
@@ -447,7 +447,8 @@ var px = (function() {
}
}
var obj = parent.append(
'<input class="' + $(this).attr('class') + '" name="'+ name +'" type="text" value="' + selected + '">');
'<input class="' + $(this).attr('class') + '" name="'+ name +'" type="text" value="' + selected + '">'
);
$("input[name='" + name +"']").select2({
createSearchChoice: create_choices,
initSelection: initSelectionToValue,